Enum nispor::MacVtapMode
source · #[non_exhaustive]pub enum MacVtapMode {
Private,
Vepa,
Bridge,
PassThrough,
Source,
Other(u32),
Unknown,
}
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 MacVtapMode
impl Clone for MacVtapMode
source§fn clone(&self) -> MacVtapMode
fn clone(&self) -> MacVtapMode
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 MacVtapMode
impl Debug for MacVtapMode
source§impl Default for MacVtapMode
impl Default for MacVtapMode
source§impl<'de> Deserialize<'de> for MacVtapMode
impl<'de> Deserialize<'de> for MacVtapMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MacVlanMode> for MacVtapMode
impl From<MacVlanMode> for MacVtapMode
source§fn from(d: MacVlanMode) -> Self
fn from(d: MacVlanMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for MacVtapMode
impl PartialEq for MacVtapMode
source§fn eq(&self, other: &MacVtapMode) -> bool
fn eq(&self, other: &MacVtapMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacVtapMode
impl Serialize for MacVtapMode
impl Eq for MacVtapMode
impl StructuralPartialEq for MacVtapMode
Auto Trait Implementations§
impl Freeze for MacVtapMode
impl RefUnwindSafe for MacVtapMode
impl Send for MacVtapMode
impl Sync for MacVtapMode
impl Unpin for MacVtapMode
impl UnwindSafe for MacVtapMode
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