Struct flate2::ffi::rust::StreamResult
source · pub struct StreamResult {
pub bytes_consumed: usize,
pub bytes_written: usize,
pub status: Result<MZStatus, MZError>,
}
Expand description
A structure containg the result of a call to the inflate or deflate streaming functions.
Fields§
§bytes_consumed: usize
The number of bytes consumed from the input slice.
bytes_written: usize
The number of bytes written to the output slice.
status: Result<MZStatus, MZError>
The return status of the call.
Implementations§
source§impl StreamResult
impl StreamResult
pub const fn error(error: MZError) -> StreamResult
Trait Implementations§
source§impl Clone for StreamResult
impl Clone for StreamResult
source§fn clone(&self) -> StreamResult
fn clone(&self) -> StreamResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamResult
impl Debug for StreamResult
source§impl Hash for StreamResult
impl Hash for StreamResult
source§impl PartialEq<StreamResult> for StreamResult
impl PartialEq<StreamResult> for StreamResult
source§fn eq(&self, other: &StreamResult) -> bool
fn eq(&self, other: &StreamResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.