pub struct Archive<'a> { /* private fields */ }
Expand description
A squashfs filesystem archive.
Implementations§
Source§impl<'a> Archive<'a>
Ways to create an archive.
impl<'a> Archive<'a>
Ways to create an archive.
Source§impl Archive<'_>
impl Archive<'_>
pub fn export_table(&self) -> Result<ExportTable<'_>>
Source§impl Archive<'_>
Methods for opening files on an archive.
impl Archive<'_>
Methods for opening files on an archive.
Sourcepub fn open(&self, path: &str) -> Result<File<'_>>
pub fn open(&self, path: &str) -> Result<File<'_>>
Open a file by path.
This will follow symlinks. Use Self::open_nofollow
to avoid following symlinks.
Sourcepub fn open_nofollow(&self, path: &str) -> Result<File<'_>>
pub fn open_nofollow(&self, path: &str) -> Result<File<'_>>
Open a file by path without following symlinks.
Sourcepub fn open_raw_nofollow(&self, path: &CStr) -> Result<File<'_>>
pub fn open_raw_nofollow(&self, path: &CStr) -> Result<File<'_>>
Open a file using a raw path (a CStr) without following symlinks.
Source§impl Archive<'_>
impl Archive<'_>
Sourcepub fn path_resolver(&self) -> Result<PathResolver<'_>>
pub fn path_resolver(&self) -> Result<PathResolver<'_>>
Create a new walker for the archive.
The walker starts at the root directory of the archive.
Source§impl Archive<'_>
impl Archive<'_>
pub fn superblock(&self) -> Superblock<'_>
pub fn compression_options(&self) -> Result<Option<CompressionOptions>>
Trait Implementations§
impl<'a> Send for Archive<'a>
impl<'a> Sync for Archive<'a>
Auto Trait Implementations§
impl<'a> Freeze for Archive<'a>
impl<'a> RefUnwindSafe for Archive<'a>
impl<'a> Unpin for Archive<'a>
impl<'a> UnwindSafe for Archive<'a>
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