Struct nispor::MacVlanInfo
source · #[non_exhaustive]pub struct MacVlanInfo {
pub base_iface: String,
pub mode: MacVlanMode,
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: MacVlanMode
§flags: u16
§allowed_mac_addresses: Option<Vec<String>>
Trait Implementations§
source§impl Clone for MacVlanInfo
impl Clone for MacVlanInfo
source§fn clone(&self) -> MacVlanInfo
fn clone(&self) -> MacVlanInfo
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 MacVlanInfo
impl Debug for MacVlanInfo
source§impl Default for MacVlanInfo
impl Default for MacVlanInfo
source§fn default() -> MacVlanInfo
fn default() -> MacVlanInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MacVlanInfo
impl<'de> Deserialize<'de> for MacVlanInfo
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 MacVlanInfo
impl PartialEq for MacVlanInfo
source§fn eq(&self, other: &MacVlanInfo) -> bool
fn eq(&self, other: &MacVlanInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacVlanInfo
impl Serialize for MacVlanInfo
impl Eq for MacVlanInfo
impl StructuralPartialEq for MacVlanInfo
Auto Trait Implementations§
impl Freeze for MacVlanInfo
impl RefUnwindSafe for MacVlanInfo
impl Send for MacVlanInfo
impl Sync for MacVlanInfo
impl Unpin for MacVlanInfo
impl UnwindSafe for MacVlanInfo
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