Enum nispor::IfaceState
source · #[non_exhaustive]pub enum IfaceState {
Up,
Dormant,
Down,
LowerLayerDown,
Testing,
Absent,
Other(String),
Unknown,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for IfaceState
impl Clone for IfaceState
source§fn clone(&self) -> IfaceState
fn clone(&self) -> IfaceState
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 IfaceState
impl Debug for IfaceState
source§impl Default for IfaceState
impl Default for IfaceState
source§fn default() -> IfaceState
fn default() -> IfaceState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IfaceState
impl<'de> Deserialize<'de> for IfaceState
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 IfaceState
impl Display for IfaceState
source§impl From<State> for IfaceState
impl From<State> for IfaceState
source§impl PartialEq for IfaceState
impl PartialEq for IfaceState
source§fn eq(&self, other: &IfaceState) -> bool
fn eq(&self, other: &IfaceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IfaceState
impl Serialize for IfaceState
impl Eq for IfaceState
impl StructuralPartialEq for IfaceState
Auto Trait Implementations§
impl Freeze for IfaceState
impl RefUnwindSafe for IfaceState
impl Send for IfaceState
impl Sync for IfaceState
impl Unpin for IfaceState
impl UnwindSafe for IfaceState
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