pub struct TarEncoder { /* private fields */ }Expand description
v0.2 sequential tar encoder.
Headers and alignment bytes are staged in a small metadata buffer; entry payload bytes are copied directly from caller input to caller output.
Implementations§
Source§impl TarEncoder
impl TarEncoder
Sourcepub fn set_archive_metadata(
&mut self,
metadata: &ArchiveMetadata,
) -> Result<(), ArchiveError>
pub fn set_archive_metadata( &mut self, metadata: &ArchiveMetadata, ) -> Result<(), ArchiveError>
Queues archive-level global PAX metadata before the first entry.
Trait Implementations§
Source§impl ArchiveEncoder for TarEncoder
impl ArchiveEncoder for TarEncoder
Source§fn step(
&mut self,
command: EncodeCommand<'_>,
output: &mut [u8],
) -> Result<EncodeStep, ArchiveError>
fn step( &mut self, command: EncodeCommand<'_>, output: &mut [u8], ) -> Result<EncodeStep, ArchiveError>
Processes one command into caller-owned output.
Auto Trait Implementations§
impl Freeze for TarEncoder
impl RefUnwindSafe for TarEncoder
impl Send for TarEncoder
impl Sync for TarEncoder
impl Unpin for TarEncoder
impl UnsafeUnpin for TarEncoder
impl UnwindSafe for TarEncoder
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