pub struct Filesystem { /* private fields */ }Implementations§
Source§impl Filesystem
impl Filesystem
pub fn new(src: &Path) -> Self
pub fn root_path(&self) -> &Path
pub fn get_header(&self) -> &FilesystemEntry
pub fn header_size(&self) -> u32
pub fn set_header(&mut self, header: FilesystemEntry, header_size: u32)
pub fn current_offset(&self) -> u64
pub fn advance_offset(&mut self, size: u64)
pub fn insert_directory( &mut self, p: &Path, should_unpack: bool, ) -> Result<(), AsarError>
pub fn insert_file( &mut self, p: &Path, size: u64, executable: bool, should_unpack: bool, integrity: Option<FileIntegrity>, ) -> Result<(), AsarError>
pub fn insert_link( &mut self, p: &Path, link: String, should_unpack: bool, ) -> Result<(), AsarError>
pub fn list_files(&self, options: Option<&ListOptions>) -> Vec<String>
pub fn get_file( &self, p: &str, follow_links: bool, ) -> Result<&FilesystemEntry, AsarError>
Trait Implementations§
Source§impl Clone for Filesystem
impl Clone for Filesystem
Source§fn clone(&self) -> Filesystem
fn clone(&self) -> Filesystem
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 moreAuto Trait Implementations§
impl Freeze for Filesystem
impl RefUnwindSafe for Filesystem
impl Send for Filesystem
impl Sync for Filesystem
impl Unpin for Filesystem
impl UnsafeUnpin for Filesystem
impl UnwindSafe for Filesystem
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