pub struct ArpPacketBuilder {
pub src_mac: MacAddr,
pub dst_mac: MacAddr,
pub src_ip: Ipv4Addr,
pub dst_ip: Ipv4Addr,
}
Expand description
ARP Packet Builder.
Fields§
§src_mac: MacAddr
Source MAC address.
dst_mac: MacAddr
Destination MAC address.
src_ip: Ipv4Addr
Source IPv4 address.
dst_ip: Ipv4Addr
Destination IPv4 address.
Implementations§
Trait Implementations§
Source§impl Clone for ArpPacketBuilder
impl Clone for ArpPacketBuilder
Source§fn clone(&self) -> ArpPacketBuilder
fn clone(&self) -> ArpPacketBuilder
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 ArpPacketBuilder
impl RefUnwindSafe for ArpPacketBuilder
impl Send for ArpPacketBuilder
impl Sync for ArpPacketBuilder
impl Unpin for ArpPacketBuilder
impl UnwindSafe for ArpPacketBuilder
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