pub struct Ethernet<'a> {
pub dst_mac: MacAddress,
pub src_mac: MacAddress,
pub ether_type: EthernetTypeId,
pub vlans: Vec<VlanTag>,
pub payload: &'a [u8],
}
Fields§
§dst_mac: MacAddress
§src_mac: MacAddress
§ether_type: EthernetTypeId
§vlans: Vec<VlanTag>
§payload: &'a [u8]
Implementations§
Trait Implementations§
Source§impl<'a> FlowExtraction for Ethernet<'a>
impl<'a> FlowExtraction for Ethernet<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ethernet<'a>
impl<'a> RefUnwindSafe for Ethernet<'a>
impl<'a> Send for Ethernet<'a>
impl<'a> Sync for Ethernet<'a>
impl<'a> Unpin for Ethernet<'a>
impl<'a> UnwindSafe for Ethernet<'a>
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