[][src]Struct sunrise_fs::detail::driver::fat::file::FileInterface

pub struct FileInterface {
    inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>,
    file_inner: File,
    mode: FileModeFlags,
}

A libfat file interface implementing FileOperations.

Fields

inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>

libfat filesystem interface.

file_inner: File

The libfat's directory entry of this file.

mode: FileModeFlags

File mode flags.

Implementations

impl FileInterface[src]

pub fn new(
    inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>,
    file_inner: File,
    mode: FileModeFlags
) -> Self
[src]

Create a new FileInterface.

Trait Implementations

impl Debug for FileInterface[src]

impl FileOperations for FileInterface[src]

fn read(&mut self, offset: u64, buf: &mut [u8]) -> LibUserResult<u64>[src]

Read the content of a file at a given offset in buf.

Auto Trait Implementations

impl !RefUnwindSafe for FileInterface

impl Send for FileInterface

impl Sync for FileInterface

impl Unpin for FileInterface

impl !UnwindSafe for FileInterface

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.