pub struct DirSlot(Option<MaybeUninit<vfs_DIR>>, PhantomPinned);
Available on
riot_module_vfs
only.Expand description
A place where a Dir can be stored
See Dir::open()
for why this is necessary.
As for its implementation, this is built from an Option rather than a bare MaybeUninit because if the created Dir is leaked and then the DirSlot is dropped, the DirSlot needs to know whether or not to do any cleanup.
§Invariants
This module maintains that the MaybeUninit is always initialized outside of its own functions, and that no panicking functions are called while it is uninit.
Tuple Fields§
§0: Option<MaybeUninit<vfs_DIR>>
§1: PhantomPinned
Implementations§
Trait Implementations§
impl<'pin> Unpin for DirSlotwhere
PinnedFieldsOf<__DirSlot<'pin>>: Unpin,
Auto Trait Implementations§
impl Freeze for DirSlot
impl RefUnwindSafe for DirSlot
impl !Send for DirSlot
impl !Sync for DirSlot
impl UnwindSafe for DirSlot
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: 16 bytes