pub enum State {
Unknown,
NotPresent,
Down,
LowerLayerDown,
Testing,
Dormant,
Up,
Other(u8),
}
Variants
Unknown
Status can’t be determined
NotPresent
Some component is missing
Down
Down
LowerLayerDown
Down due to state of lower layer
Testing
In some test mode
Dormant
Not up but pending an external event
Up
Up, ready to send packets
Other(u8)
Unrecognized value. This should go away when TryFrom
is stable in Rust
Trait Implementations
impl Copy for State
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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