pub enum OperState {
Up,
Down,
Dormant,
Unknown,
}Expand description
RFC 2863 operational state as reported by the kernel via IF_OPER_*.
Variants§
Up
Link is up and ready to pass traffic.
Down
Link is administratively or physically down.
Dormant
Radio is on but not associated (wifi) or cable connected but no carrier.
Unknown
State not reported or not applicable (e.g. loopback).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OperState
impl<'de> Deserialize<'de> for OperState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for OperState
impl Eq for OperState
impl StructuralPartialEq for OperState
Auto Trait Implementations§
impl Freeze for OperState
impl RefUnwindSafe for OperState
impl Send for OperState
impl Sync for OperState
impl Unpin for OperState
impl UnsafeUnpin for OperState
impl UnwindSafe for OperState
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