pub struct PendingMember<'a> { /* private fields */ }Expand description
Validated metadata for a ZIP64 member awaiting its final CRC and sizes.
Once the payload’s CRC and sizes are known, Self::finish produces a
CompletedMember that can serialize the local and central headers.
Implementations§
Source§impl<'a> PendingMember<'a>
impl<'a> PendingMember<'a>
Sourcepub fn new(
path: &'a str,
method: CompressionMethod,
kind: EntryKind,
) -> Result<Self, Error>
pub fn new( path: &'a str, method: CompressionMethod, kind: EntryKind, ) -> Result<Self, Error>
Checks the path and method before any output is written.
Enforces the APPNOTE 4.4.10 through 4.4.12 recommendation of at most 65,535 bytes per central-directory entry.
Sourcepub fn method(&self) -> CompressionMethod
pub fn method(&self) -> CompressionMethod
Returns the payload compression method.
Sourcepub fn local_header_size(&self) -> usize
pub fn local_header_size(&self) -> usize
Returns the space to reserve for the completed local header.
Sourcepub fn central_header_size(&self) -> usize
pub fn central_header_size(&self) -> usize
Returns the central header size in bytes, including the filename and ZIP64 extra field.
Auto Trait Implementations§
impl<'a> Forget for PendingMember<'a>
impl<'a> Freeze for PendingMember<'a>
impl<'a> Move for PendingMember<'a>
impl<'a> RefUnwindSafe for PendingMember<'a>
impl<'a> Send for PendingMember<'a>
impl<'a> Sync for PendingMember<'a>
impl<'a> Unpin for PendingMember<'a>
impl<'a> UnsafeUnpin for PendingMember<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for PendingMember<'a>where
&'a str: UnwindSafe,
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