Struct weezl::StreamResult [−][src]
#[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: usize
The total number of bytes consumed from the reader.
bytes_written: usize
The 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.