pub struct StreamResult {
pub bytes_consumed: usize,
pub bytes_written: usize,
pub status: MZResult,
}
Expand description
A structure containing 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: MZResult
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 From<&StreamResult> for MZResult
impl From<&StreamResult> for MZResult
Source§fn from(res: &StreamResult) -> Self
fn from(res: &StreamResult) -> Self
Converts to this type from the input type.
Source§impl From<StreamResult> for MZResult
impl From<StreamResult> for MZResult
Source§fn from(res: StreamResult) -> Self
fn from(res: StreamResult) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamResult
impl Hash for StreamResult
Source§impl PartialEq for StreamResult
impl PartialEq for StreamResult
impl Copy for StreamResult
impl Eq for StreamResult
impl StructuralPartialEq for StreamResult
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