Struct EntryWriter
pub struct EntryWriter<'a> { /* private fields */ }
A writer for a single entry in a tar archive.
This struct is returned by Builder::append_writer and provides a
Write implementation for adding content to an archive entry.
After writing all data to the entry, it must be finalized either by
explicitly calling EntryWriter::finish or by letting it drop.
Implementations
impl EntryWriter<'_>
fn finish(self) -> Result<()>Finish writing the current entry in the archive.
Trait Implementations
impl Drop for EntryWriter<'_>
fn drop(&mut self)
impl Write for EntryWriter<'_>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn flush(&mut self) -> Result<()>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EntryWriter<'a>
impl<'a> !Send for EntryWriter<'a>
impl<'a> !Sync for EntryWriter<'a>
impl<'a> !UnwindSafe for EntryWriter<'a>
impl<'a> Freeze for EntryWriter<'a>
impl<'a> Unpin for EntryWriter<'a>
impl<'a> UnsafeUnpin for EntryWriter<'a>
Blanket Implementations
impl<T> Any for EntryWriter<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EntryWriter<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EntryWriter<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for EntryWriter<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for EntryWriter<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EntryWriter<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for EntryWriter<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>