#[non_exhaustive]pub enum OperationalState {
Up,
Down,
NoCarrier,
Unknown,
}Expand description
The operational state of an interface, as observed from the link layer.
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.
Up
Down
NoCarrier
The interface is up but has no carrier / lower-layer connectivity.
Unknown
The platform does not expose a separate operational state.
Trait Implementations§
Source§impl Clone for OperationalState
impl Clone for OperationalState
Source§fn clone(&self) -> OperationalState
fn clone(&self) -> OperationalState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperationalState
Source§impl Debug for OperationalState
impl Debug for OperationalState
impl Eq for OperationalState
Source§impl Hash for OperationalState
impl Hash for OperationalState
Source§impl PartialEq for OperationalState
impl PartialEq for OperationalState
impl StructuralPartialEq for OperationalState
Auto Trait Implementations§
impl Freeze for OperationalState
impl RefUnwindSafe for OperationalState
impl Send for OperationalState
impl Sync for OperationalState
impl Unpin for OperationalState
impl UnsafeUnpin for OperationalState
impl UnwindSafe for OperationalState
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