pub enum FilesystemState {
Unmounted,
Mounted,
Populated,
Pivoted,
UnmountedFinal,
}Expand description
Filesystem lifecycle state machine matching Nucleus_Filesystem_FilesystemLifecycle.tla
State transitions: unmounted -> mounted -> populated -> pivoted -> unmounted_final
Properties verified by TLA+ model:
- context_isolation: Once pivoted, can only move to pivoted or unmounted_final
- ephemeral_guarantee: unmounted_final is terminal and stable
- mount_ordering: populated can only transition to pivoted or unmounted_final
Variants§
Unmounted
Initial state - no filesystem mounted
Mounted
tmpfs mounted
Populated
Context files populated
Pivoted
Root switched via pivot_root
UnmountedFinal
Final cleanup - terminal state
Trait Implementations§
Source§impl Clone for FilesystemState
impl Clone for FilesystemState
Source§fn clone(&self) -> FilesystemState
fn clone(&self) -> FilesystemState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilesystemState
impl Debug for FilesystemState
Source§impl PartialEq for FilesystemState
impl PartialEq for FilesystemState
Source§impl StateTransition for FilesystemState
impl StateTransition for FilesystemState
Source§fn can_transition_to(&self, next: &FilesystemState) -> bool
fn can_transition_to(&self, next: &FilesystemState) -> bool
Return
true if moving from self to next is a valid transition.Source§fn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Return
true if this state is terminal (no forward transitions).Source§fn transition(self, next: Self) -> Result<Self>
fn transition(self, next: Self) -> Result<Self>
Attempt to transition, returning
Err(InvalidStateTransition) on failure.impl Copy for FilesystemState
impl Eq for FilesystemState
impl StructuralPartialEq for FilesystemState
Auto Trait Implementations§
impl Freeze for FilesystemState
impl RefUnwindSafe for FilesystemState
impl Send for FilesystemState
impl Sync for FilesystemState
impl Unpin for FilesystemState
impl UnsafeUnpin for FilesystemState
impl UnwindSafe for FilesystemState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.