⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Fat32Fs

Struct Fat32Fs 

Source
pub struct Fat32Fs { /* private fields */ }
Expand description

FAT32 filesystem

Implementations§

Source§

impl Fat32Fs

Source

pub fn from_image( image_data: &[u8], readonly: bool, ) -> Result<Self, KernelError>

Create a FAT32 filesystem from raw image data.

image_data should be a complete FAT32 volume image. The image is loaded entirely into memory (sector cache).

Trait Implementations§

Source§

impl Filesystem for Fat32Fs

Source§

fn root(&self) -> Arc<dyn VfsNode>

Get the root node of the filesystem
Source§

fn name(&self) -> &str

Get filesystem name
Source§

fn is_readonly(&self) -> bool

Check if filesystem is read-only
Source§

fn sync(&self) -> Result<(), KernelError>

Sync filesystem to disk

Auto Trait Implementations§

§

impl Freeze for Fat32Fs

§

impl !RefUnwindSafe for Fat32Fs

§

impl Send for Fat32Fs

§

impl Sync for Fat32Fs

§

impl Unpin for Fat32Fs

§

impl !UnwindSafe for Fat32Fs

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.