pub struct DataLinkOwned {
pub destination_mac: String,
pub source_mac: String,
pub ethertype: String,
pub vlan: Option<VlanTag>,
}Fields§
§destination_mac: String§source_mac: StringThe source MAC address as a string.
ethertype: StringThe Ethertype of the packet, indicating the protocol in the payload.
vlan: Option<VlanTag>Trait Implementations§
Source§impl Clone for DataLinkOwned
impl Clone for DataLinkOwned
Source§fn clone(&self) -> DataLinkOwned
fn clone(&self) -> DataLinkOwned
Returns a duplicate 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 DataLinkOwned
impl Debug for DataLinkOwned
Source§impl Display for DataLinkOwned
impl Display for DataLinkOwned
Source§impl Hash for DataLinkOwned
impl Hash for DataLinkOwned
Source§impl PartialEq for DataLinkOwned
impl PartialEq for DataLinkOwned
Source§impl Serialize for DataLinkOwned
impl Serialize for DataLinkOwned
impl Eq for DataLinkOwned
impl StructuralPartialEq for DataLinkOwned
Auto Trait Implementations§
impl Freeze for DataLinkOwned
impl RefUnwindSafe for DataLinkOwned
impl Send for DataLinkOwned
impl Sync for DataLinkOwned
impl Unpin for DataLinkOwned
impl UnsafeUnpin for DataLinkOwned
impl UnwindSafe for DataLinkOwned
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