Struct xenet_packet_builder::icmp::IcmpPacketBuilder
source · 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: Ipv4AddrSource IPv4 address.
dst_ip: Ipv4AddrDestination IPv4 address.
icmp_type: IcmpTypeICMP 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 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 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