pub struct Mount<'a>(&'a mut vfs_DIR);
Available on
riot_module_vfs
only.Expand description
A mount point, represented (and made un-unmountable) by its root directory
Tuple Fields§
§0: &'a mut vfs_DIR
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> Freeze for Mount<'a>
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
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes