pub struct CompressionReadResult {
pub payload: Payload,
pub outcome: Option<CompressionOutcome>,
}Expand description
What decompress_payload produced from a stored payload.
Fields§
§payload: PayloadThe decoded payload; the input with its 0x00 escape prefix removed
when it was escaped raw output; or the input unchanged when it passed
through untouched or zstd rejected it.
outcome: Option<CompressionOutcome>None when no zstd envelope was involved: the payload passed through
untouched or only had its escape prefix removed.
Trait Implementations§
Source§impl Clone for CompressionReadResult
impl Clone for CompressionReadResult
Source§fn clone(&self) -> CompressionReadResult
fn clone(&self) -> CompressionReadResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompressionReadResult
impl Debug for CompressionReadResult
impl Eq for CompressionReadResult
Source§impl PartialEq for CompressionReadResult
impl PartialEq for CompressionReadResult
Source§fn eq(&self, other: &CompressionReadResult) -> bool
fn eq(&self, other: &CompressionReadResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressionReadResult
Auto Trait Implementations§
impl Freeze for CompressionReadResult
impl RefUnwindSafe for CompressionReadResult
impl Send for CompressionReadResult
impl Sync for CompressionReadResult
impl Unpin for CompressionReadResult
impl UnsafeUnpin for CompressionReadResult
impl UnwindSafe for CompressionReadResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.