pub struct VerifiedDecoder<'a> { /* private fields */ }Implementations§
Source§impl<'a> VerifiedDecoder<'a>
impl<'a> VerifiedDecoder<'a>
pub fn new( decoder: Decoder<'a>, compressed_digest: Digest, compressed_size: u64, diff_id: Digest, ) -> Self
Sourcepub fn compressed_only(
decoder: Decoder<'a>,
compressed_digest: Digest,
compressed_size: u64,
) -> Self
pub fn compressed_only( decoder: Decoder<'a>, compressed_digest: Digest, compressed_size: u64, ) -> Self
Creates a decoder that verifies the compressed descriptor only.
OCI artifacts commonly use layer archives without an image config’s
rootfs.diff_ids. Decoded byte accounting remains available, but no
uncompressed digest is expected or checked.
pub fn push<E>( &mut self, input: &[u8], output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), LayerError<E>>
pub const fn compressed_size(&self) -> u64
pub const fn decompressed_size(&self) -> u64
pub fn finish<E>( &mut self, output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), LayerError<E>>
Auto Trait Implementations§
impl<'a> !UnwindSafe for VerifiedDecoder<'a>
impl<'a> Freeze for VerifiedDecoder<'a>
impl<'a> RefUnwindSafe for VerifiedDecoder<'a>
impl<'a> Send for VerifiedDecoder<'a>
impl<'a> Sync for VerifiedDecoder<'a>
impl<'a> Unpin for VerifiedDecoder<'a>
impl<'a> UnsafeUnpin for VerifiedDecoder<'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