pub struct EthernetPacketBuilder {
pub src_mac: MacAddr,
pub dst_mac: MacAddr,
pub ether_type: EtherType,
}
Expand description
Ethernet Packet Builder.
Fields§
§src_mac: MacAddr
Source MAC address.
dst_mac: MacAddr
Destination MAC address.
ether_type: EtherType
EtherType.
Implementations§
Trait Implementations§
Source§impl Clone for EthernetPacketBuilder
impl Clone for EthernetPacketBuilder
Source§fn clone(&self) -> EthernetPacketBuilder
fn clone(&self) -> EthernetPacketBuilder
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 moreAuto Trait Implementations§
impl Freeze for EthernetPacketBuilder
impl RefUnwindSafe for EthernetPacketBuilder
impl Send for EthernetPacketBuilder
impl Sync for EthernetPacketBuilder
impl Unpin for EthernetPacketBuilder
impl UnwindSafe for EthernetPacketBuilder
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