pub struct VerifiedEntryExtractor<'decoder, 'target> { /* private fields */ }Expand description
Verifies and decodes a layer while extracting one regular tar entry.
Implementations§
Source§impl<'decoder, 'target> VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> VerifiedEntryExtractor<'decoder, 'target>
pub const fn new( decoder: VerifiedDecoder<'decoder>, target: &'target [u8], ) -> Self
pub fn push<E>( &mut self, input: &[u8], output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), EntryLayerError<E>>
pub fn finish<E>( &mut self, output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), EntryLayerError<E>>
pub const fn compressed_size(&self) -> u64
pub const fn decompressed_size(&self) -> u64
pub const fn extracted_size(&self) -> u64
pub const fn found(&self) -> bool
Auto Trait Implementations§
impl<'decoder, 'target> !UnwindSafe for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> Freeze for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> RefUnwindSafe for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> Send for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> Sync for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> Unpin for VerifiedEntryExtractor<'decoder, 'target>
impl<'decoder, 'target> UnsafeUnpin for VerifiedEntryExtractor<'decoder, 'target>
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