pub struct LinkInfo {
pub src_mac: Option<[u8; 6]>,
pub dst_mac: Option<[u8; 6]>,
/* private fields */
}Expand description
Info extracted from the data link layer header.
Fields§
§src_mac: Option<[u8; 6]>Source MAC address, if available.
dst_mac: Option<[u8; 6]>Destination MAC address, if available.
Trait Implementations§
impl Copy for LinkInfo
impl Eq for LinkInfo
impl StructuralPartialEq for LinkInfo
Auto Trait Implementations§
impl Freeze for LinkInfo
impl RefUnwindSafe for LinkInfo
impl Send for LinkInfo
impl Sync for LinkInfo
impl Unpin for LinkInfo
impl UnsafeUnpin for LinkInfo
impl UnwindSafe for LinkInfo
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