pub struct ArchiveManager;Expand description
Archive backend for creating, extracting, and listing archives.
Implementations§
Source§impl ArchiveManager
impl ArchiveManager
Sourcepub fn create_archive<'a>(
&'a self,
source_dir: &'a str,
output_path: &'a str,
format: ArchiveFormat,
) -> BoxFuture<'a, Result<ArchiveInfo, VfsError>>
pub fn create_archive<'a>( &'a self, source_dir: &'a str, output_path: &'a str, format: ArchiveFormat, ) -> BoxFuture<'a, Result<ArchiveInfo, VfsError>>
Create an archive from a directory.
Sourcepub fn extract_archive<'a>(
&'a self,
archive_path: &'a str,
dest_dir: &'a str,
policy: ConflictPolicy,
) -> BoxFuture<'a, Result<(), VfsError>>
pub fn extract_archive<'a>( &'a self, archive_path: &'a str, dest_dir: &'a str, policy: ConflictPolicy, ) -> BoxFuture<'a, Result<(), VfsError>>
Extract an archive to a directory.
Sourcepub fn list_contents<'a>(
&'a self,
archive_path: &'a str,
) -> BoxFuture<'a, Result<ArchiveInfo, VfsError>>
pub fn list_contents<'a>( &'a self, archive_path: &'a str, ) -> BoxFuture<'a, Result<ArchiveInfo, VfsError>>
List archive contents.
Trait Implementations§
Source§impl Clone for ArchiveManager
impl Clone for ArchiveManager
Source§fn clone(&self) -> ArchiveManager
fn clone(&self) -> ArchiveManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArchiveManager
impl Debug for ArchiveManager
Source§impl Default for ArchiveManager
impl Default for ArchiveManager
Source§fn default() -> ArchiveManager
fn default() -> ArchiveManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArchiveManager
impl RefUnwindSafe for ArchiveManager
impl Send for ArchiveManager
impl Sync for ArchiveManager
impl Unpin for ArchiveManager
impl UnsafeUnpin for ArchiveManager
impl UnwindSafe for ArchiveManager
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