pub struct TarEncoder<W> { /* private fields */ }Expand description
A pure-pax format writer for use with ArchiveBuilder::builder.
Implementations§
Source§impl<W> TarEncoder<W>
impl<W> TarEncoder<W>
Trait Implementations§
Source§impl<W: AsyncWrite + Unpin> ArchiveBuilder for TarEncoder<W>
impl<W: AsyncWrite + Unpin> ArchiveBuilder for TarEncoder<W>
Source§type Error = EncodeError
type Error = EncodeError
The archive-format error returned while encoding entries.
Source§async fn finish_archive(&mut self) -> Result<(), BuildFailure<Self::Error>>
async fn finish_archive(&mut self) -> Result<(), BuildFailure<Self::Error>>
Writes any format-specific archive terminator or index.
Source§async fn write_file_member(
&mut self,
path: &str,
payload: &mut EntryPayload<'_>,
metadata: EntryMetadata,
) -> Result<(), BuildFailure<Self::Error>>
async fn write_file_member( &mut self, path: &str, payload: &mut EntryPayload<'_>, metadata: EntryMetadata, ) -> Result<(), BuildFailure<Self::Error>>
Writes one regular-file member and its complete payload. Read more
Source§async fn write_directory_member(
&mut self,
path: &str,
) -> Result<(), BuildFailure<Self::Error>>
async fn write_directory_member( &mut self, path: &str, ) -> Result<(), BuildFailure<Self::Error>>
Writes one directory member.
Source§async fn write_symbolic_link_member(
&mut self,
path: &str,
target: &str,
) -> Result<(), BuildFailure<Self::Error>>
async fn write_symbolic_link_member( &mut self, path: &str, target: &str, ) -> Result<(), BuildFailure<Self::Error>>
Writes one symbolic-link member.
Source§fn builder(self) -> Builder<Self>
fn builder(self) -> Builder<Self>
Wraps this format writer in a builder using default policy. Read more
Source§fn builder_with_policy(self, policy: BuilderPolicy) -> Builder<Self>
fn builder_with_policy(self, policy: BuilderPolicy) -> Builder<Self>
Wraps this format writer in a builder using
policy. Read moreAuto Trait Implementations§
impl<W> Freeze for TarEncoder<W>where
W: Freeze,
impl<W> RefUnwindSafe for TarEncoder<W>where
W: RefUnwindSafe,
impl<W> Send for TarEncoder<W>where
W: Send,
impl<W> Sync for TarEncoder<W>where
W: Sync,
impl<W> Unpin for TarEncoder<W>where
W: Unpin,
impl<W> UnsafeUnpin for TarEncoder<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for TarEncoder<W>where
W: 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