#[repr(u8)]pub enum OperState {
unknown,
missing,
off,
no_carrier,
dormant,
degraded_carrier,
carrier,
degraded,
enslaved,
routable,
}Expand description
Enumeration of networkd’s operational state
Variants§
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
source§impl PartialEq<OperState> for OperState
impl PartialEq<OperState> for OperState
impl Copy for OperState
impl Eq for OperState
impl StructuralEq for OperState
impl StructuralPartialEq for OperState
Auto Trait Implementations§
impl RefUnwindSafe for OperState
impl Send for OperState
impl Sync for OperState
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.