pub struct AuxiliaryStreamValidator { /* private fields */ }Expand description
Incrementally validates one revision-45 auxiliary payload. Large ordinary and sparse streams are hashed and structurally checked without retaining their data bytes.
Implementations§
Source§impl AuxiliaryStreamValidator
impl AuxiliaryStreamValidator
pub fn new( records: &PaxRecords, ordinal: u32, stored_size: u64, ) -> Result<Self, FormatError>
pub fn observe(&mut self, bytes: &[u8]) -> Result<(), FormatError>
pub fn finish(self) -> Result<AuxiliaryRecord, FormatError>
Auto Trait Implementations§
impl Freeze for AuxiliaryStreamValidator
impl RefUnwindSafe for AuxiliaryStreamValidator
impl Send for AuxiliaryStreamValidator
impl Sync for AuxiliaryStreamValidator
impl Unpin for AuxiliaryStreamValidator
impl UnsafeUnpin for AuxiliaryStreamValidator
impl UnwindSafe for AuxiliaryStreamValidator
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