Struct weezl::StreamResult
source · pub struct StreamResult {
pub bytes_read: usize,
pub bytes_written: usize,
pub status: Result<()>,
}
Expand description
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamResult
impl !RefUnwindSafe for StreamResult
impl Send for StreamResult
impl Sync for StreamResult
impl Unpin for StreamResult
impl !UnwindSafe for StreamResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more