pub struct EntryPayload<'a> { /* private fields */ }Expand description
A format-neutral, uncompressed payload supplied to an ArchiveBuilder
implementation.
Implementations§
Source§impl EntryPayload<'_>
impl EntryPayload<'_>
Sourcepub fn size(&self) -> u64
pub fn size(&self) -> u64
Returns the logical, uncompressed source size in bytes.
This is the total number of bytes yielded by Self::next_chunk, not
necessarily the size ultimately stored by the archive format.
Sourcepub async fn next_chunk<E>(&mut self) -> Result<Option<&[u8]>, BuildError<E>>
pub async fn next_chunk<E>(&mut self) -> Result<Option<&[u8]>, BuildError<E>>
Returns the next chunk of logical, uncompressed source bytes.
Auto Trait Implementations§
impl<'a> !Freeze for EntryPayload<'a>
impl<'a> !RefUnwindSafe for EntryPayload<'a>
impl<'a> !UnwindSafe for EntryPayload<'a>
impl<'a> Send for EntryPayload<'a>
impl<'a> Sync for EntryPayload<'a>
impl<'a> Unpin for EntryPayload<'a>
impl<'a> UnsafeUnpin for EntryPayload<'a>
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