Enum surge_ping::IcmpPacket
source · [−]pub enum IcmpPacket {
V4(Icmpv4Packet),
V6(Icmpv6Packet),
}Expand description
Represents the ICMP reply packet.
Variants
V4(Icmpv4Packet)
An ICMPv4 packet abstraction.
V6(Icmpv6Packet)
An ICMPv6 packet abstraction.
Implementations
sourceimpl IcmpPacket
impl IcmpPacket
pub fn get_identifier(&self) -> PingIdentifier
pub fn get_sequence(&self) -> PingSequence
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IcmpPacket
impl Send for IcmpPacket
impl Sync for IcmpPacket
impl Unpin for IcmpPacket
impl UnwindSafe for IcmpPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more