Struct StreamResult
#[must_use = "Contains a status with potential error information"]
pub struct StreamResult { pub bytes_read: usize, pub bytes_written: usize, pub status: Result<()> }
The result of coding into an output stream.
Fields
bytes_read: usizeThe total number of bytes consumed from the reader.
bytes_written: usizeThe total number of bytes written into the writer.
status: Result<()>The possible error that occurred.
Note that when writing into streams it is not in general possible to recover from an error.
Trait Implementations
impl Debug for StreamResult
fn fmt(&self, f: &mut Formatter<'_>) -> Result