[−][src]Struct sunrise_fs::detail::driver::fat::filesystem::FatFileSystem
A wrapper arround libfat FatFileSystem implementing FileSystemOperations.
Fields
inner: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>libfat filesystem interface.
Implementations
impl FatFileSystem[src]
pub fn new(
inner: FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>
) -> Self[src]
inner: FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>
) -> Self
Create a new FAT filesystem instance.
pub fn from_storage(
storage: Box<dyn StorageDevice<Error = Error> + Send>
) -> LibUserResult<Self>[src]
storage: Box<dyn StorageDevice<Error = Error> + Send>
) -> LibUserResult<Self>
Construct a FAT filesystem instance with an IStorage.
Trait Implementations
impl Debug for FatFileSystem[src]
impl FileSystemOperations for FatFileSystem[src]
fn create_file(&self, path: &str, size: u64) -> LibUserResult<()>[src]
fn create_directory(&self, path: &str) -> LibUserResult<()>[src]
fn rename_file(&self, old_path: &str, new_path: &str) -> LibUserResult<()>[src]
fn rename_directory(&self, old_path: &str, new_path: &str) -> LibUserResult<()>[src]
fn delete_file(&self, path: &str) -> LibUserResult<()>[src]
fn delete_directory(&self, path: &str) -> LibUserResult<()>[src]
fn get_entry_type(&self, path: &str) -> LibUserResult<DirectoryEntryType>[src]
fn open_file(
&self,
path: &str,
mode: FileModeFlags
) -> LibUserResult<Box<dyn FileOperations>>[src]
&self,
path: &str,
mode: FileModeFlags
) -> LibUserResult<Box<dyn FileOperations>>
fn open_directory(
&self,
path: &str,
filter: DirFilterFlags
) -> LibUserResult<Box<dyn DirectoryOperations>>[src]
&self,
path: &str,
filter: DirFilterFlags
) -> LibUserResult<Box<dyn DirectoryOperations>>
fn get_free_space_size(&self, _path: &str) -> LibUserResult<u64>[src]
fn get_total_space_size(&self, _path: &str) -> LibUserResult<u64>[src]
fn get_file_timestamp_raw(&self, path: &str) -> LibUserResult<FileTimeStampRaw>[src]
fn get_filesystem_type(&self) -> FileSystemType[src]
Auto Trait Implementations
impl !RefUnwindSafe for FatFileSystem
impl Send for FatFileSystem
impl Sync for FatFileSystem
impl Unpin for FatFileSystem
impl !UnwindSafe for FatFileSystem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SizedIPCBuffer for T[src]
fn size(&self) -> usize[src]
fn is_cool(addr: usize, size: usize) -> bool[src]
unsafe fn from_raw_parts<'a>(addr: usize, _size: usize) -> &'a T[src]
unsafe fn from_raw_parts_mut<'a>(addr: usize, _size: usize) -> &'a mut T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
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>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,