pub struct ArpPacketBuilder<HwAddr, ProtoAddr> { /* private fields */ }
Expand description
A builder for ARP packets.
Implementations§
Source§impl<HwAddr, ProtoAddr> ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> ArpPacketBuilder<HwAddr, ProtoAddr>
Sourcepub fn new(
operation: ArpOp,
sender_hardware_addr: HwAddr,
sender_protocol_addr: ProtoAddr,
target_hardware_addr: HwAddr,
target_protocol_addr: ProtoAddr,
) -> ArpPacketBuilder<HwAddr, ProtoAddr>
pub fn new( operation: ArpOp, sender_hardware_addr: HwAddr, sender_protocol_addr: ProtoAddr, target_hardware_addr: HwAddr, target_protocol_addr: ProtoAddr, ) -> ArpPacketBuilder<HwAddr, ProtoAddr>
Construct a new ArpPacketBuilder
.
Trait Implementations§
Source§impl<HwAddr, ProtoAddr> InnerPacketBuilder for ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> InnerPacketBuilder for ArpPacketBuilder<HwAddr, ProtoAddr>
Source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
Serializes this packet into an existing buffer. Read more
§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
§fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
Converts this
InnerPacketBuilder
into a [Serializer
] with a buffer
that can be used for serialization. Read moreAuto Trait Implementations§
impl<HwAddr, ProtoAddr> Freeze for ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> RefUnwindSafe for ArpPacketBuilder<HwAddr, ProtoAddr>where
HwAddr: RefUnwindSafe,
ProtoAddr: RefUnwindSafe,
impl<HwAddr, ProtoAddr> Send for ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> Sync for ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> Unpin for ArpPacketBuilder<HwAddr, ProtoAddr>
impl<HwAddr, ProtoAddr> UnwindSafe for ArpPacketBuilder<HwAddr, ProtoAddr>where
HwAddr: UnwindSafe,
ProtoAddr: UnwindSafe,
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