Struct kernel::fs::NewSuperBlock
source · [−]Expand description
A superblock that is still being initialised.
It uses type states to ensure that callers use the right sequence of calls.
Invariants
The superblock is a newly-created one and this is the only active pointer to it.
Implementations
sourceimpl<'a, T: Type + ?Sized> NewSuperBlock<'a, T, NeedsInit>
impl<'a, T: Type + ?Sized> NewSuperBlock<'a, T, NeedsInit>
sourcepub fn init(
self,
data: T::Data,
params: &SuperParams
) -> Result<NewSuperBlock<'a, T, NeedsRoot>>
pub fn init(
self,
data: T::Data,
params: &SuperParams
) -> Result<NewSuperBlock<'a, T, NeedsRoot>>
Initialises the superblock so that it transitions to the NeedsRoot
type state.
sourceimpl<'a, T: Type + ?Sized> NewSuperBlock<'a, T, NeedsRoot>
impl<'a, T: Type + ?Sized> NewSuperBlock<'a, T, NeedsRoot>
sourcepub fn init_root(self) -> Result<&'a SuperBlock<T>>
pub fn init_root(self) -> Result<&'a SuperBlock<T>>
Initialises the root of the superblock.
Auto Trait Implementations
impl<'a, T: ?Sized, S> RefUnwindSafe for NewSuperBlock<'a, T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, S = NeedsInit> !Send for NewSuperBlock<'a, T, S>
impl<'a, T, S = NeedsInit> !Sync for NewSuperBlock<'a, T, S>
impl<'a, T: ?Sized, S> Unpin for NewSuperBlock<'a, T, S>where
S: Unpin,
impl<'a, T: ?Sized, S> UnwindSafe for NewSuperBlock<'a, T, S>where
S: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more