pub struct CompressionWriteResult {
pub payload: Payload,
pub outcome: CompressionOutcome,
pub original_bytes: usize,
pub stored_bytes: usize,
}Expand description
What compress_payload chose to store, and why.
Fields§
§payload: PayloadThe bytes to store: marked zstd output, or the escaped raw form.
outcome: CompressionOutcomeOne of the write outcomes: compressed, below threshold, not smaller or over limit.
original_bytes: usizeLength of the serializer output after text replacement, before escaping.
stored_bytes: usizeLength of payload.
Trait Implementations§
Source§impl Clone for CompressionWriteResult
impl Clone for CompressionWriteResult
Source§fn clone(&self) -> CompressionWriteResult
fn clone(&self) -> CompressionWriteResult
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 CompressionWriteResult
impl Debug for CompressionWriteResult
impl Eq for CompressionWriteResult
Source§impl PartialEq for CompressionWriteResult
impl PartialEq for CompressionWriteResult
Source§fn eq(&self, other: &CompressionWriteResult) -> bool
fn eq(&self, other: &CompressionWriteResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressionWriteResult
Auto Trait Implementations§
impl Freeze for CompressionWriteResult
impl RefUnwindSafe for CompressionWriteResult
impl Send for CompressionWriteResult
impl Sync for CompressionWriteResult
impl Unpin for CompressionWriteResult
impl UnsafeUnpin for CompressionWriteResult
impl UnwindSafe for CompressionWriteResult
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.