pub struct EntryDecoder<'a> { /* private fields */ }Expand description
Stream one entry from a trusted pack offset, without loading the pack or
its index. This shares framing, CRC, inflation, size and object-ID handling
with Decoder. It does not verify the whole pack’s checksum or graph.
Compare the final CRC/ID with authenticated index metadata before use.
Events are EntryStart, NeedInput, NeedOutput and EntryEnd. At entry
completion the following bytes stay unconsumed, even if end_of_input is
true. Completed updates repeat EntryEnd with zero bytes consumed/written.
The host may await storage between updates, retaining only the inflate
window and this fixed state. Delta bodies contain instructions, not objects.
Implementations§
Source§impl<'a> EntryDecoder<'a>
impl<'a> EntryDecoder<'a>
Auto Trait Implementations§
impl<'a> !UnwindSafe for EntryDecoder<'a>
impl<'a> Freeze for EntryDecoder<'a>
impl<'a> RefUnwindSafe for EntryDecoder<'a>
impl<'a> Send for EntryDecoder<'a>
impl<'a> Sync for EntryDecoder<'a>
impl<'a> Unpin for EntryDecoder<'a>
impl<'a> UnsafeUnpin for EntryDecoder<'a>
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