pub struct InfoSector<'a> { /* private fields */ }
Expand description
File System Information structure is only present on FAT32 partitions. It may contain a valid number of free clusters and the number of the next free cluster. The information contained in the structure must be considered as advisory only. File system driver implementations are not required to ensure that information within the structure is kept consistent.
Implementations§
Source§impl<'a> InfoSector<'a>
impl<'a> InfoSector<'a>
Sourcepub fn create_from_bytes(
data: &[u8; 512],
) -> Result<InfoSector<'_>, &'static str>
pub fn create_from_bytes( data: &[u8; 512], ) -> Result<InfoSector<'_>, &'static str>
Try and create a new Info Sector from a block.
Sourcepub fn free_count(&self) -> u32
pub fn free_count(&self) -> u32
Get the $name field
Sourcepub fn free_clusters_count(&self) -> Option<u32>
pub fn free_clusters_count(&self) -> Option<u32>
Return how many free clusters are left in this volume, if known.
Sourcepub fn next_free_cluster(&self) -> Option<ClusterId>
pub fn next_free_cluster(&self) -> Option<ClusterId>
Return the number of the next free cluster, if known.