pub struct ArchiveBuilder<W: Write + Seek> { /* private fields */ }Implementations§
Source§impl<W: Write + Seek> ArchiveBuilder<W>
impl<W: Write + Seek> ArchiveBuilder<W>
pub fn new( writer: W, compression: Compression, size_limit_mb: Option<u32>, deterministic: bool, hash: bool, ) -> Self
Sourcepub fn add_directory(
&mut self,
source: &Path,
path_in_archive: &str,
) -> Result<(), TmcError>
pub fn add_directory( &mut self, source: &Path, path_in_archive: &str, ) -> Result<(), TmcError>
Does not include any files within the directory.
pub fn add_file( &mut self, source: &Path, path_in_archive: &str, ) -> Result<(), TmcError>
pub fn finish(self) -> Result<(W, Option<Hash>), TmcError>
Auto Trait Implementations§
impl<W> Freeze for ArchiveBuilder<W>where
W: Freeze,
impl<W> RefUnwindSafe for ArchiveBuilder<W>where
W: RefUnwindSafe,
impl<W> Send for ArchiveBuilder<W>where
W: Send,
impl<W> Sync for ArchiveBuilder<W>where
W: Sync,
impl<W> Unpin for ArchiveBuilder<W>where
W: Unpin,
impl<W> UnwindSafe for ArchiveBuilder<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