Enum monitord::networkd::CarrierState
source · #[repr(u8)]pub enum CarrierState {
unknown = 0,
off = 1,
no_carrier = 2,
dormant = 3,
degraded_carrier = 4,
carrier = 5,
enslaved = 6,
}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 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§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 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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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.