pub enum NetworkState {
Unconfigured,
Configuring,
Active,
Cleaned,
}Expand description
Network state tracking
Variants§
Unconfigured
No network configured
Configuring
Network is being set up
Active
Network is active
Cleaned
Network has been torn down
Trait Implementations§
Source§impl Clone for NetworkState
impl Clone for NetworkState
Source§fn clone(&self) -> NetworkState
fn clone(&self) -> NetworkState
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 NetworkState
impl Debug for NetworkState
Source§impl PartialEq for NetworkState
impl PartialEq for NetworkState
Source§impl StateTransition for NetworkState
impl StateTransition for NetworkState
Source§fn can_transition_to(&self, next: &NetworkState) -> bool
fn can_transition_to(&self, next: &NetworkState) -> 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 NetworkState
impl Eq for NetworkState
impl StructuralPartialEq for NetworkState
Auto Trait Implementations§
impl Freeze for NetworkState
impl RefUnwindSafe for NetworkState
impl Send for NetworkState
impl Sync for NetworkState
impl Unpin for NetworkState
impl UnsafeUnpin for NetworkState
impl UnwindSafe for NetworkState
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.