#[repr(u8)]pub enum CarrierState {
unknown = 0,
off = 1,
no_carrier = 2,
dormant = 3,
degraded_carrier = 4,
carrier = 5,
enslaved = 6,
}Expand description
Physical carrier (link layer) state of a networkd-managed interface. Ref: https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-network/network-util.h
Variants§
unknown = 0
Carrier state could not be determined
off = 1
Interface is administratively down (IFF_UP not set)
no_carrier = 2
Interface is up but no carrier signal detected (cable unplugged or no link partner)
dormant = 3
Carrier detected but interface is in a dormant/standby state
degraded_carrier = 4
Carrier detected but in a degraded condition
carrier = 5
Full carrier signal present and link is operational
enslaved = 6
Interface is enslaved to a bond/bridge master
Trait Implementations§
Source§impl Clone for CarrierState
impl Clone for CarrierState
Source§fn clone(&self) -> CarrierState
fn clone(&self) -> CarrierState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CarrierState
impl Debug for CarrierState
Source§impl Default for CarrierState
impl Default for CarrierState
Source§fn default() -> CarrierState
fn default() -> CarrierState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CarrierState
impl<'de> Deserialize<'de> for CarrierState
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 Display for CarrierState
impl Display for CarrierState
Source§impl From<CarrierState> for u8
impl From<CarrierState> for u8
Source§fn from(v: CarrierState) -> Self
fn from(v: CarrierState) -> Self
Converts to this type from the input type.
Source§impl FromStr for CarrierState
impl FromStr for CarrierState
Source§impl IntoEnumIterator for CarrierState
impl IntoEnumIterator for CarrierState
type Iterator = CarrierStateIter
fn iter() -> CarrierStateIter ⓘ
Source§impl PartialEq for CarrierState
impl PartialEq for CarrierState
Source§impl Serialize for CarrierState
impl Serialize for CarrierState
Source§impl TryFrom<&str> for CarrierState
impl TryFrom<&str> for CarrierState
Source§impl TryFrom<u8> for CarrierState
impl TryFrom<u8> for CarrierState
impl Copy for CarrierState
impl Eq for CarrierState
impl StructuralPartialEq for CarrierState
Auto Trait Implementations§
impl Freeze for CarrierState
impl RefUnwindSafe for CarrierState
impl Send for CarrierState
impl Sync for CarrierState
impl Unpin for CarrierState
impl UnwindSafe for CarrierState
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.