Struct bitar::ArchiveChunk
source · pub struct ArchiveChunk { /* private fields */ }
Expand description
An unverified chunk fetched from archive.
Implementations§
source§impl ArchiveChunk
impl ArchiveChunk
sourcepub fn verify(self) -> Result<VerifiedChunk, HashSumMismatchError>
pub fn verify(self) -> Result<VerifiedChunk, HashSumMismatchError>
Verify an unverified chunk.
Results in a verified chunk or an error if the chunk hash sum doesn’t match with the expected one.
Trait Implementations§
source§impl Clone for ArchiveChunk
impl Clone for ArchiveChunk
source§fn clone(&self) -> ArchiveChunk
fn clone(&self) -> ArchiveChunk
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for ArchiveChunk
impl RefUnwindSafe for ArchiveChunk
impl Send for ArchiveChunk
impl Sync for ArchiveChunk
impl Unpin for ArchiveChunk
impl UnwindSafe for ArchiveChunk
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