pub struct Arp<'a> { /* private fields */ }
Expand description
Immutable representation of an arp packet
Trait Implementations§
Source§impl<'a> LayerImmutable<'a> for Arp<'a>
impl<'a> LayerImmutable<'a> for Arp<'a>
Source§type PacketMut = MutableArpPacket<'a>
type PacketMut = MutableArpPacket<'a>
Mutable packet type of the pnet lib
Source§type LayerMutType = ArpMut
type LayerMutType = ArpMut
Packet specific
LayerMut
type used to convert the immutable to a mutable packetSource§fn as_mut(&self) -> Option<Self::LayerMutType>
fn as_mut(&self) -> Option<Self::LayerMutType>
Returns a mutable packet to modification this will cause a copy of payload
Source§fn as_mut_pnet(&self) -> Option<Self::PacketMut>
fn as_mut_pnet(&self) -> Option<Self::PacketMut>
returns mutable pnet representation this will cause a copy of payload
Auto Trait Implementations§
impl<'a> Freeze for Arp<'a>
impl<'a> RefUnwindSafe for Arp<'a>
impl<'a> Send for Arp<'a>
impl<'a> Sync for Arp<'a>
impl<'a> Unpin for Arp<'a>
impl<'a> UnwindSafe for Arp<'a>
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