[−][src]Struct sunrise_fs::detail::driver::fat::file::FileInterface
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]
inner_fs: Arc<Mutex<FatFileSystem<Box<dyn StorageDevice<Error = Error> + Send>>>>,
file_inner: File,
mode: FileModeFlags
) -> Self
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
.
fn write(&mut self, offset: u64, buf: &[u8]) -> LibUserResult<()>
[src]
fn flush(&mut self) -> LibUserResult<()>
[src]
fn set_len(&mut self, size: u64) -> LibUserResult<()>
[src]
fn get_len(&mut self) -> LibUserResult<u64>
[src]
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]
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>,