#[non_exhaustive]pub enum CheckpointKind {
GzipMemberHeader,
GzipMemberDeflate {
header_offset_in_bytes: u64,
},
ZlibHeader,
RawDeflateStart,
DeflateBlock,
}Expand description
How inflation resumes at a checkpoint.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GzipMemberHeader
The offset points at the gzip magic bytes of a complete member.
GzipMemberDeflate
The offset points at raw DEFLATE immediately after a known member header. Keeping the header offset permits full verification while retaining compatibility with raw-DEFLATE index formats.
ZlibHeader
The offset points at the two-byte header of the zlib stream.
RawDeflateStart
The offset points at the first bit of an unwrapped DEFLATE stream.
DeflateBlock
The offset points at the first bit of a raw DEFLATE block.
Trait Implementations§
Source§impl Clone for CheckpointKind
impl Clone for CheckpointKind
Source§fn clone(&self) -> CheckpointKind
fn clone(&self) -> CheckpointKind
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 moreimpl Copy for CheckpointKind
Source§impl Debug for CheckpointKind
impl Debug for CheckpointKind
impl Eq for CheckpointKind
Source§impl PartialEq for CheckpointKind
impl PartialEq for CheckpointKind
impl StructuralPartialEq for CheckpointKind
Auto Trait Implementations§
impl Freeze for CheckpointKind
impl RefUnwindSafe for CheckpointKind
impl Send for CheckpointKind
impl Sync for CheckpointKind
impl Unpin for CheckpointKind
impl UnsafeUnpin for CheckpointKind
impl UnwindSafe for CheckpointKind
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