#[non_exhaustive]pub enum Access {
InPlace {
offset: u64,
len: u64,
},
Zran,
SpillToTemp,
}Expand description
The access strategy for one member or segment, chosen from the archive’s member table without decompressing (ADR 0008, rule 4 — most-seekable first).
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.
InPlace
Stored/uncompressed member — seek a zero-copy sub-range in place.
Fields
Zran
Deflate/Deflate64/gzip — a checkpoint seek-index gives random access with no full inflate.
SpillToTemp
A non-seekable codec (LZMA/LZMA2/7z, bzip2 until a block-index lands) or a format exposing no in-archive offset — decompress once to temp.
Trait Implementations§
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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