pub enum ArchiveVerifier {
Start,
EntryHeader {
buffer: [u8; 92],
filled: usize,
},
EntryData {
data_len: usize,
},
}Expand description
Archive data stream verifier.
Variants§
Implementations§
Source§impl ArchiveVerifier
impl ArchiveVerifier
Sourcepub fn write_verify(&mut self, part: &[u8]) -> Result<(), ArchiveReaderError>
pub fn write_verify(&mut self, part: &[u8]) -> Result<(), ArchiveReaderError>
Verifies next archive chunk.
Sourcepub fn final_check(&self) -> Result<(), ArchiveReaderError>
pub fn final_check(&self) -> Result<(), ArchiveReaderError>
Ensures that the verifier is in the correct state.
Trait Implementations§
Source§impl Default for ArchiveVerifier
impl Default for ArchiveVerifier
Source§fn default() -> ArchiveVerifier
fn default() -> ArchiveVerifier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArchiveVerifier
impl RefUnwindSafe for ArchiveVerifier
impl Send for ArchiveVerifier
impl Sync for ArchiveVerifier
impl Unpin for ArchiveVerifier
impl UnwindSafe for ArchiveVerifier
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more