#[repr(u8)]pub enum OperState {
unknown = 0,
missing = 1,
off = 2,
no_carrier = 3,
dormant = 4,
degraded_carrier = 5,
carrier = 6,
degraded = 7,
enslaved = 8,
routable = 9,
}Expand description
Operational state of a networkd-managed interface combining carrier and address information. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
Variants§
unknown = 0
Operational state could not be determined
missing = 1
Interface is missing from the system
off = 2
Interface is administratively down
no_carrier = 3
Interface is up but has no carrier signal
dormant = 4
Interface has carrier but is in a dormant/standby state
degraded_carrier = 5
Interface carrier is in a degraded condition
carrier = 6
Interface has carrier but no addresses configured
degraded = 7
Interface is operational but only has link-local or non-routable addresses
enslaved = 8
Interface is enslaved to a bond/bridge master
routable = 9
Interface is fully operational with at least one routable address
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 IntoEnumIterator for OperState
impl IntoEnumIterator for OperState
type Iterator = OperStateIter
fn iter() -> OperStateIter ⓘ
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.