pub struct EthernetPacketBuilder {
pub src_mac: MacAddr,
pub dst_mac: MacAddr,
pub ether_type: EtherType,
}Expand description
Ethernet Packet Builder.
Fields§
§src_mac: MacAddrSource MAC address.
dst_mac: MacAddrDestination MAC address.
ether_type: EtherTypeEtherType.
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 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