File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,9 @@ fn flatten_segments<R: message::ReaderSegments + ?Sized>(segments: &R) -> Vec<u8
428
428
///
429
429
/// For optimal performance, `write` should be a buffered writer. `flush()` will not be called on
430
430
/// the writer.
431
+ ///
432
+ /// The only source of errors from this function are `write.write_all()` calls. If you pass in
433
+ /// a writer that never returns an error, then this function will never return an error.
431
434
pub fn write_message < W , A > ( mut write : W , message : & message:: Builder < A > ) -> Result < ( ) >
432
435
where
433
436
W : Write ,
Original file line number Diff line number Diff line change @@ -402,6 +402,9 @@ where
402
402
}
403
403
404
404
/// Writes a packed message to a stream.
405
+ ///
406
+ /// The only source of errors from this function are `write.write_all()` calls. If you pass in
407
+ /// a writer that never returns an error, then this function will never return an error.
405
408
pub fn write_message < W , A > ( write : W , message : & crate :: message:: Builder < A > ) -> Result < ( ) >
406
409
where
407
410
W : Write ,
You can’t perform that action at this time.
0 commit comments