pub struct TarWriter { /* private fields */ }Expand description
Allocation-free writer for deterministic ustar archives.
Implementations§
Source§impl TarWriter
impl TarWriter
pub const fn new() -> Self
pub fn begin_file<E>( &mut self, path: &[u8], size: u64, mode: u32, output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), TarWriteError<E>>
pub fn write_file_data<E>( &mut self, bytes: &[u8], output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), TarWriteError<E>>
pub fn end_file<E>( &mut self, output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), TarWriteError<E>>
pub fn finish<E>( &mut self, output: impl FnMut(&[u8]) -> Result<(), E>, ) -> Result<(), TarWriteError<E>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TarWriter
impl RefUnwindSafe for TarWriter
impl Send for TarWriter
impl Sync for TarWriter
impl Unpin for TarWriter
impl UnsafeUnpin for TarWriter
impl UnwindSafe for TarWriter
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