pub struct FileSystem<S>{ /* private fields */ }
Expand description
An API to process a FAT filesystem
Implementations§
Source§impl<S> FileSystem<S>
Getter functions
impl<S> FileSystem<S>
Getter functions
Source§impl<S> FileSystem<S>
Public functions
impl<S> FileSystem<S>
Public functions
Sourcepub fn from_storage(storage: S) -> FSResult<Self, S::Error>
pub fn from_storage(storage: S) -> FSResult<Self, S::Error>
Create a FileSystem
from a storage object that implements Read
, Write
& Seek
Fails if the storage is way too small to support a FAT filesystem.
For most use cases, that shouldn’t be an issue, you can just call .unwrap()
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for FileSystem<S>where
S: Freeze,
impl<S> RefUnwindSafe for FileSystem<S>where
S: RefUnwindSafe,
impl<S> Send for FileSystem<S>where
S: Send,
impl<S> Sync for FileSystem<S>where
S: Sync,
impl<S> Unpin for FileSystem<S>where
S: Unpin,
impl<S> UnwindSafe for FileSystem<S>where
S: UnwindSafe,
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