Struct bitar::CompressedArchiveChunk
source · pub struct CompressedArchiveChunk { /* private fields */ }
Expand description
A possibly compressed chunk fetched from archive.
Chunk might be compressed and needs to be decompressed before being verified.
Implementations§
source§impl CompressedArchiveChunk
impl CompressedArchiveChunk
sourcepub fn decompress(self) -> Result<ArchiveChunk, CompressionError>
pub fn decompress(self) -> Result<ArchiveChunk, CompressionError>
Decompress the chunk.
Trait Implementations§
source§impl Clone for CompressedArchiveChunk
impl Clone for CompressedArchiveChunk
source§fn clone(&self) -> CompressedArchiveChunk
fn clone(&self) -> CompressedArchiveChunk
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 CompressedArchiveChunk
impl RefUnwindSafe for CompressedArchiveChunk
impl Send for CompressedArchiveChunk
impl Sync for CompressedArchiveChunk
impl Unpin for CompressedArchiveChunk
impl UnwindSafe for CompressedArchiveChunk
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