pub struct FatFileSystem { /* private fields */ }Expand description
File Allocation Table (FAT) file system.
Implementations§
Source§impl FatFileSystem
impl FatFileSystem
Sourcepub fn get_bytes_per_sector(&self) -> u16
pub fn get_bytes_per_sector(&self) -> u16
Retrieves the bytes per sector.
Sourcepub fn get_format(&self) -> &FatFormat
pub fn get_format(&self) -> &FatFormat
Retrieves the format.
Sourcepub fn get_volume_label(&self) -> Option<&ByteString>
pub fn get_volume_label(&self) -> Option<&ByteString>
Retrieves the volume label.
Sourcepub fn get_file_entry_by_identifier(
&self,
file_entry_identifier: u32,
) -> Result<FatFileEntry, ErrorTrace>
pub fn get_file_entry_by_identifier( &self, file_entry_identifier: u32, ) -> Result<FatFileEntry, ErrorTrace>
Retrieves the file entry for a specific identifier (directory entry offset).
Sourcepub fn get_file_entry_by_path(
&self,
path: &Path,
) -> Result<Option<FatFileEntry>, ErrorTrace>
pub fn get_file_entry_by_path( &self, path: &Path, ) -> Result<Option<FatFileEntry>, ErrorTrace>
Retrieves the file entry for a specific path.
Sourcepub fn get_root_directory(&self) -> Result<FatFileEntry, ErrorTrace>
pub fn get_root_directory(&self) -> Result<FatFileEntry, ErrorTrace>
Retrieves the root directory (file entry).
Sourcepub fn read_data_stream(
&mut self,
data_stream: &DataStreamReference,
) -> Result<(), ErrorTrace>
pub fn read_data_stream( &mut self, data_stream: &DataStreamReference, ) -> Result<(), ErrorTrace>
Reads a file system from a data stream.
Auto Trait Implementations§
impl Forget for FatFileSystem
impl Freeze for FatFileSystem
impl Move for FatFileSystem
impl RefUnwindSafe for FatFileSystem
impl Send for FatFileSystem
impl Sync for FatFileSystem
impl Unpin for FatFileSystem
impl UnsafeUnpin for FatFileSystem
impl UnwindSafe for FatFileSystem
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