Enum monitord::networkd::CarrierState
source · #[repr(u8)]pub enum CarrierState {
unknown,
off,
no_carrier,
dormant,
degraded_carrier,
carrier,
enslaved,
}Expand description
Enumeration of networkd physical signal / state of interfaces
Variants§
Trait Implementations§
source§impl Clone for CarrierState
impl Clone for CarrierState
source§fn clone(&self) -> CarrierState
fn clone(&self) -> CarrierState
Returns a copy 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<'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 FromStr for CarrierState
impl FromStr for CarrierState
source§impl IntEnum for CarrierState
impl IntEnum for CarrierState
source§impl PartialEq<CarrierState> for CarrierState
impl PartialEq<CarrierState> for CarrierState
source§fn eq(&self, other: &CarrierState) -> bool
fn eq(&self, other: &CarrierState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CarrierState
impl Serialize for CarrierState
source§impl ToString for CarrierState
impl ToString for CarrierState
impl Copy for CarrierState
impl Eq for CarrierState
impl StructuralEq for CarrierState
impl StructuralPartialEq for CarrierState
Auto Trait Implementations§
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
§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.