sel4_async_block_io_fat::fat

Struct InfoSector

Source
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>

Source

pub fn create_from_bytes( data: &[u8; 512], ) -> Result<InfoSector<'_>, &'static str>

Try and create a new Info Sector from a block.

Source

pub fn lead_sig(&self) -> u32

Get the $name field

Source

pub fn struc_sig(&self) -> u32

Get the $name field

Source

pub fn free_count(&self) -> u32

Get the $name field

Source

pub fn next_free(&self) -> u32

Get the $name field

Source

pub fn trail_sig(&self) -> u32

Get the $name field

Source

pub fn free_clusters_count(&self) -> Option<u32>

Return how many free clusters are left in this volume, if known.

Source

pub fn next_free_cluster(&self) -> Option<ClusterId>

Return the number of the next free cluster, if known.

Auto Trait Implementations§

§

impl<'a> Freeze for InfoSector<'a>

§

impl<'a> RefUnwindSafe for InfoSector<'a>

§

impl<'a> Send for InfoSector<'a>

§

impl<'a> Sync for InfoSector<'a>

§

impl<'a> Unpin for InfoSector<'a>

§

impl<'a> UnwindSafe for InfoSector<'a>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.