pub enum EntryDataMode {
Ignore,
Crc32,
Keep,
KeepAndCrc32,
}
Available on crate feature
streaming-input
only.Expand description
Define what to do with the compressed bytes portion of a pack Entry
Variants§
Ignore
Do nothing with the compressed bytes we read
Crc32
Only create a CRC32 of the entry, otherwise similar to Ignore
Keep
Keep them and pass them along in a newly allocated buffer
KeepAndCrc32
As above, but also compute a CRC32
Implementations§
Trait Implementations§
source§impl Clone for EntryDataMode
impl Clone for EntryDataMode
source§fn clone(&self) -> EntryDataMode
fn clone(&self) -> EntryDataMode
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 EntryDataMode
impl Debug for EntryDataMode
source§impl<'de> Deserialize<'de> for EntryDataMode
impl<'de> Deserialize<'de> for EntryDataMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EntryDataMode
impl Hash for EntryDataMode
source§impl Ord for EntryDataMode
impl Ord for EntryDataMode
source§fn cmp(&self, other: &EntryDataMode) -> Ordering
fn cmp(&self, other: &EntryDataMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EntryDataMode
impl PartialEq for EntryDataMode
source§impl PartialOrd for EntryDataMode
impl PartialOrd for EntryDataMode
source§impl Serialize for EntryDataMode
impl Serialize for EntryDataMode
impl Copy for EntryDataMode
impl Eq for EntryDataMode
impl StructuralPartialEq for EntryDataMode
Auto Trait Implementations§
impl Freeze for EntryDataMode
impl RefUnwindSafe for EntryDataMode
impl Send for EntryDataMode
impl Sync for EntryDataMode
impl Unpin for EntryDataMode
impl UnwindSafe for EntryDataMode
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)