Struct nispor::MacVtapInfo
source · #[non_exhaustive]pub struct MacVtapInfo {
pub base_iface: String,
pub mode: MacVtapMode,
pub flags: u16,
pub allowed_mac_addresses: Option<Vec<String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.base_iface: String
§mode: MacVtapMode
§flags: u16
§allowed_mac_addresses: Option<Vec<String>>
Trait Implementations§
source§impl Clone for MacVtapInfo
impl Clone for MacVtapInfo
source§fn clone(&self) -> MacVtapInfo
fn clone(&self) -> MacVtapInfo
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 MacVtapInfo
impl Debug for MacVtapInfo
source§impl Default for MacVtapInfo
impl Default for MacVtapInfo
source§fn default() -> MacVtapInfo
fn default() -> MacVtapInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MacVtapInfo
impl<'de> Deserialize<'de> for MacVtapInfo
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<MacVlanInfo> for MacVtapInfo
impl From<MacVlanInfo> for MacVtapInfo
source§fn from(d: MacVlanInfo) -> Self
fn from(d: MacVlanInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq for MacVtapInfo
impl PartialEq for MacVtapInfo
source§fn eq(&self, other: &MacVtapInfo) -> bool
fn eq(&self, other: &MacVtapInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacVtapInfo
impl Serialize for MacVtapInfo
impl Eq for MacVtapInfo
impl StructuralPartialEq for MacVtapInfo
Auto Trait Implementations§
impl Freeze for MacVtapInfo
impl RefUnwindSafe for MacVtapInfo
impl Send for MacVtapInfo
impl Sync for MacVtapInfo
impl Unpin for MacVtapInfo
impl UnwindSafe for MacVtapInfo
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