Enum surge_ping::IcmpPacket
source · pub enum IcmpPacket {
V4(Icmpv4Packet),
V6(Icmpv6Packet),
}
Expand description
Represents the ICMP reply packet.
Variants§
Implementations§
source§impl 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§
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