pub struct DeflatedEntry { /* private fields */ }
Expand description
An extracted entry from a zip file.
Implementations§
Source§impl DeflatedEntry
impl DeflatedEntry
Sourcepub fn into_parts(self) -> (LocalFileHeader, Bytes)
pub fn into_parts(self) -> (LocalFileHeader, Bytes)
Returns the header and the decompressed data.
Sourcepub fn compressed_size(&self) -> u32
pub fn compressed_size(&self) -> u32
Returns the compressed size of the data.
Sourcepub fn uncompressed_size(&self) -> u32
pub fn uncompressed_size(&self) -> u32
Returns the uncompressed size of the data.
Trait Implementations§
Source§impl From<DeflatedEntry> for Bytes
impl From<DeflatedEntry> for Bytes
Source§fn from(entry: DeflatedEntry) -> Self
fn from(entry: DeflatedEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DeflatedEntry
impl RefUnwindSafe for DeflatedEntry
impl Send for DeflatedEntry
impl Sync for DeflatedEntry
impl Unpin for DeflatedEntry
impl UnwindSafe for DeflatedEntry
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