Struct riot_wrappers::vfs::Mount
source · pub struct Mount<'a>(/* private fields */);
Available on
riot_module_vfs
only.Expand description
A mount point, represented (and made un-unmountable) by its root directory
Implementations§
source§impl<'a> Mount<'a>
impl<'a> Mount<'a>
sourcepub fn root_dir(&mut self) -> &'a mut Dir ⓘ
pub fn root_dir(&mut self) -> &'a mut Dir ⓘ
Use the mount point as a directory iterator
Note that reading its entries mutates the Mount
instance as the opened directory is
internal to it; a second call to this function may produce an empty iterator (just like
attempting to read entries from an already exhausted Dir does); this may change if VFS’s
directories gain rewind support.
pub fn mount_point(&self) -> &'a str
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Mount<'a>
impl<'a> !Send for Mount<'a>
impl<'a> !Sync for Mount<'a>
impl<'a> Unpin for Mount<'a>
impl<'a> !UnwindSafe for Mount<'a>
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