Struct riot_wrappers::vfs::File
source · pub struct File { /* private fields */ }
Available on
riot_module_vfs
only.Expand description
A file handle
Implementations§
source§impl File
impl File
sourcepub fn open(path: &str) -> Result<Self, NumericError>
pub fn open(path: &str) -> Result<Self, NumericError>
Open a file in read-only mode.
sourcepub fn stat(&self) -> Result<Stat, NumericError>
pub fn stat(&self) -> Result<Stat, NumericError>
Obtain metadata of the file.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for File
impl !Send for File
impl !Sync for File
impl Unpin for File
impl UnwindSafe for File
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