pub struct ErofsReader { /* private fields */ }Expand description
A handle to an open EROFS image for reading.
Implementations§
Source§impl ErofsReader
impl ErofsReader
Sourcepub fn read_file(&mut self, path: &str) -> Result<Vec<u8>>
pub fn read_file(&mut self, path: &str) -> Result<Vec<u8>>
Read a file by path from the EROFS image. Returns the file data.
Sourcepub fn read_link(&mut self, path: &str) -> Result<Vec<u8>>
pub fn read_link(&mut self, path: &str) -> Result<Vec<u8>>
Read a symlink target by path from the EROFS image.
pub fn entry_info(&mut self, path: &str) -> Result<ErofsEntryInfo>
Auto Trait Implementations§
impl Freeze for ErofsReader
impl RefUnwindSafe for ErofsReader
impl Send for ErofsReader
impl Sync for ErofsReader
impl Unpin for ErofsReader
impl UnsafeUnpin for ErofsReader
impl UnwindSafe for ErofsReader
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