Enum netlink_packet_route::link::VfLinkState
source · #[non_exhaustive]pub enum VfLinkState {
Auto,
Enable,
Disable,
Other(u32),
}
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 VfLinkState
impl Clone for VfLinkState
source§fn clone(&self) -> VfLinkState
fn clone(&self) -> VfLinkState
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 VfLinkState
impl Debug for VfLinkState
source§impl Default for VfLinkState
impl Default for VfLinkState
source§fn default() -> VfLinkState
fn default() -> VfLinkState
Returns the “default value” for a type. Read more
source§impl From<VfLinkState> for u32
impl From<VfLinkState> for u32
source§fn from(v: VfLinkState) -> u32
fn from(v: VfLinkState) -> u32
Converts to this type from the input type.
source§impl From<u32> for VfLinkState
impl From<u32> for VfLinkState
source§impl PartialEq for VfLinkState
impl PartialEq for VfLinkState
source§fn eq(&self, other: &VfLinkState) -> bool
fn eq(&self, other: &VfLinkState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VfLinkState
impl Eq for VfLinkState
impl StructuralPartialEq for VfLinkState
Auto Trait Implementations§
impl RefUnwindSafe for VfLinkState
impl Send for VfLinkState
impl Sync for VfLinkState
impl Unpin for VfLinkState
impl UnwindSafe for VfLinkState
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