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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.