Enum netlink_packet_route::link::BondPortState
source · #[non_exhaustive]pub enum BondPortState {
Active,
Backup,
Other(u8),
}
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 BondPortState
impl Clone for BondPortState
source§fn clone(&self) -> BondPortState
fn clone(&self) -> BondPortState
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 BondPortState
impl Debug for BondPortState
source§impl From<BondPortState> for u8
impl From<BondPortState> for u8
source§fn from(value: BondPortState) -> Self
fn from(value: BondPortState) -> Self
Converts to this type from the input type.
source§impl From<u8> for BondPortState
impl From<u8> for BondPortState
source§impl PartialEq for BondPortState
impl PartialEq for BondPortState
source§fn eq(&self, other: &BondPortState) -> bool
fn eq(&self, other: &BondPortState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BondPortState
impl Eq for BondPortState
impl StructuralEq for BondPortState
impl StructuralPartialEq for BondPortState
Auto Trait Implementations§
impl RefUnwindSafe for BondPortState
impl Send for BondPortState
impl Sync for BondPortState
impl Unpin for BondPortState
impl UnwindSafe for BondPortState
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