Struct netlink_packet_route::link::VfInfoMac
source · #[non_exhaustive]pub struct VfInfoMac {
pub vf_id: u32,
pub mac: [u8; 32],
}
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.vf_id: u32
§mac: [u8; 32]
Implementations§
Trait Implementations§
source§impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<VfInfoMacBuffer<&'a T>> for VfInfoMac
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<VfInfoMacBuffer<&'a T>> for VfInfoMac
source§fn parse(buf: &VfInfoMacBuffer<&T>) -> Result<Self, DecodeError>
fn parse(buf: &VfInfoMacBuffer<&T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for VfInfoMac
impl PartialEq for VfInfoMac
impl Copy for VfInfoMac
impl Eq for VfInfoMac
impl StructuralEq for VfInfoMac
impl StructuralPartialEq for VfInfoMac
Auto Trait Implementations§
impl RefUnwindSafe for VfInfoMac
impl Send for VfInfoMac
impl Sync for VfInfoMac
impl Unpin for VfInfoMac
impl UnwindSafe for VfInfoMac
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