pub struct DirImpl { /* private fields */ }Trait Implementations§
Source§impl Dir for DirImpl
impl Dir for DirImpl
type Read = File
type Write = File
Source§fn open_file(&mut self, name: &str) -> Result<Self::Read, FSError>
fn open_file(&mut self, name: &str) -> Result<Self::Read, FSError>
Open a file for reading. Read more
Source§fn create_file(&mut self, name: &str) -> Result<Self::Write, FSError>
fn create_file(&mut self, name: &str) -> Result<Self::Write, FSError>
Create a new file and open it for write. Read more
Source§fn append_file(&mut self, name: &str) -> Result<Self::Write, FSError>
fn append_file(&mut self, name: &str) -> Result<Self::Write, FSError>
Write data to the end of the file.
Source§fn get_file_size(&mut self, name: &str) -> Result<u32, FSError>
fn get_file_size(&mut self, name: &str) -> Result<u32, FSError>
Get file size in bytes. Read more
Auto Trait Implementations§
impl Freeze for DirImpl
impl RefUnwindSafe for DirImpl
impl Send for DirImpl
impl Sync for DirImpl
impl Unpin for DirImpl
impl UnwindSafe for DirImpl
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