pub enum FSMState {
Init,
Connected,
Available,
Left,
}Expand description
Coarse mesh-membership state for the local node.
Recomputed after every MeshNodeFSM::process call. Once Left, stays Left.
Variants§
Init
No peer is Connected yet — the node has not joined any mesh.
Connected
At least one peer is Connected, but some relay handshake is still in progress.
Available
All peer handshakes have settled — the node is fully meshed and ready to send.
Left
The node has issued Input::Leave; terminal.
Trait Implementations§
impl Copy for FSMState
impl Eq for FSMState
impl StructuralPartialEq for FSMState
Auto Trait Implementations§
impl Freeze for FSMState
impl RefUnwindSafe for FSMState
impl Send for FSMState
impl Sync for FSMState
impl Unpin for FSMState
impl UnsafeUnpin for FSMState
impl UnwindSafe for FSMState
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