Enum netlink_packet_route::link::BridgeMode
source · #[non_exhaustive]pub enum BridgeMode {
Veb,
Vepa,
Other(u16),
}
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.
Implementations§
Trait Implementations§
source§impl Clone for BridgeMode
impl Clone for BridgeMode
source§fn clone(&self) -> BridgeMode
fn clone(&self) -> BridgeMode
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 BridgeMode
impl Debug for BridgeMode
source§impl From<BridgeMode> for u16
impl From<BridgeMode> for u16
source§fn from(v: BridgeMode) -> u16
fn from(v: BridgeMode) -> u16
Converts to this type from the input type.
source§impl From<u16> for BridgeMode
impl From<u16> for BridgeMode
source§impl PartialEq for BridgeMode
impl PartialEq for BridgeMode
impl Copy for BridgeMode
impl Eq for BridgeMode
impl StructuralPartialEq for BridgeMode
Auto Trait Implementations§
impl Freeze for BridgeMode
impl RefUnwindSafe for BridgeMode
impl Send for BridgeMode
impl Sync for BridgeMode
impl Unpin for BridgeMode
impl UnwindSafe for BridgeMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)