#[non_exhaustive]pub enum AdminState {
Up,
Down,
Unknown,
}Expand description
The administrative state of an interface, as configured by the operator.
Distinct from OperationalState: an interface can be administratively
up but operationally down (cable unplugged), or administratively down
(and therefore always operationally down).
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
Unknown
The platform does not expose a separate administrative state (e.g. BSD/macOS route-socket interfaces report a single combined state).
Trait Implementations§
Source§impl Clone for AdminState
impl Clone for AdminState
Source§fn clone(&self) -> AdminState
fn clone(&self) -> AdminState
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 AdminState
Source§impl Debug for AdminState
impl Debug for AdminState
impl Eq for AdminState
Source§impl Hash for AdminState
impl Hash for AdminState
Source§impl PartialEq for AdminState
impl PartialEq for AdminState
impl StructuralPartialEq for AdminState
Auto Trait Implementations§
impl Freeze for AdminState
impl RefUnwindSafe for AdminState
impl Send for AdminState
impl Sync for AdminState
impl Unpin for AdminState
impl UnsafeUnpin for AdminState
impl UnwindSafe for AdminState
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