pub struct FatFs<R> { /* private fields */ }Expand description
A pure-Rust reader over a FAT12/16/32 volume.
Implementations§
Source§impl<R: Read + Seek> FatFs<R>
impl<R: Read + Seek> FatFs<R>
Sourcepub fn open(reader: R) -> Result<Self>
pub fn open(reader: R) -> Result<Self>
Open a FAT volume, auto-detecting the variant from the boot sector.
Fails loud if the boot sector is not a recognized FAT/exFAT filesystem.
Sourcepub fn variant(&self) -> FatVariant
pub fn variant(&self) -> FatVariant
The detected FAT variant.
Sourcepub fn geometry(&self) -> &Geometry
pub fn geometry(&self) -> &Geometry
The resolved on-disk volume geometry (variant, sector/cluster sizes, FAT layout, and byte offsets). Useful to a forensic consumer that needs the raw layout the reader computed.
Sourcepub fn runs(&self, id: FileId) -> Result<Vec<(u64, u64)>>
pub fn runs(&self, id: FileId) -> Result<Vec<(u64, u64)>>
Contiguous image byte runs (offset, len) backing node id’s data,
merging physically adjacent clusters (the FAT12/16 fixed root is a single
region run). Useful to a forensic consumer that needs the on-disk run
list of a file or directory.
Sourcepub fn read_dir(&self, id: FileId) -> Result<Vec<Node>>
pub fn read_dir(&self, id: FileId) -> Result<Vec<Node>>
List the entries of the directory id (allocated and deleted).
Auto Trait Implementations§
impl<R> !Freeze for FatFs<R>
impl<R> RefUnwindSafe for FatFs<R>
impl<R> Send for FatFs<R>where
R: Send,
impl<R> Sync for FatFs<R>where
R: Send,
impl<R> Unpin for FatFs<R>where
R: Unpin,
impl<R> UnsafeUnpin for FatFs<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for FatFs<R>
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