pub struct IcmpPacketBuilder {
pub src_ip: Ipv4Addr,
pub dst_ip: Ipv4Addr,
pub icmp_type: IcmpType,
pub sequence_number: Option<u16>,
pub identifier: Option<u16>,
}
Expand description
ICMP Packet Builder
Fields§
§src_ip: Ipv4Addr
Source IPv4 address
dst_ip: Ipv4Addr
Destination IPv4 address
icmp_type: IcmpType
ICMP type
sequence_number: Option<u16>
ICMP sequence number
identifier: Option<u16>
ICMP identifier
Implementations§
Trait Implementations§
Source§impl Clone for IcmpPacketBuilder
impl Clone for IcmpPacketBuilder
Source§fn clone(&self) -> IcmpPacketBuilder
fn clone(&self) -> IcmpPacketBuilder
Returns a duplicate 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 IcmpPacketBuilder
impl RefUnwindSafe for IcmpPacketBuilder
impl Send for IcmpPacketBuilder
impl Sync for IcmpPacketBuilder
impl Unpin for IcmpPacketBuilder
impl UnwindSafe for IcmpPacketBuilder
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