pub struct Archive { /* private fields */ }Expand description
Represents an archive file with associated metadata.
Implementations§
Source§impl Archive
impl Archive
Sourcepub fn open<P: AsRef<Path>>(path: P) -> Self
pub fn open<P: AsRef<Path>>(path: P) -> Self
Creates a new Archive from a file path.
This constructor is infallible. I/O errors surface later when
Archive::extract is called.
§Examples
use exarch_core::Archive;
let archive = Archive::open("archive.tar.gz");Sourcepub fn config(&self) -> &SecurityConfig
pub fn config(&self) -> &SecurityConfig
Returns a reference to the security configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnsafeUnpin for Archive
impl UnwindSafe for Archive
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