Struct surge_ping::Icmpv6Packet
source · [−]pub struct Icmpv6Packet { /* private fields */ }
Expand description
Packet structure returned by ICMPv6.
Implementations
sourceimpl Icmpv6Packet
impl Icmpv6Packet
sourcepub fn get_source(&self) -> Ipv6Addr
pub fn get_source(&self) -> Ipv6Addr
Get the source IPv6 address.
sourcepub fn get_destination(&self) -> Ipv6Addr
pub fn get_destination(&self) -> Ipv6Addr
Get the destination IPv6 address.
sourcepub fn get_max_hop_limit(&self) -> u8
pub fn get_max_hop_limit(&self) -> u8
Get the hop_limit field.
sourcepub fn get_icmpv6_type(&self) -> Icmpv6Type
pub fn get_icmpv6_type(&self) -> Icmpv6Type
Get the icmpv6_type of the icmpv6 packet.
sourcepub fn get_icmpv6_code(&self) -> Icmpv6Code
pub fn get_icmpv6_code(&self) -> Icmpv6Code
Get the icmpv6_code of the icmpv6 packet.
sourcepub fn get_real_dest(&self) -> Ipv6Addr
pub fn get_real_dest(&self) -> Ipv6Addr
If it is an echo_reply
packet, it is the source address in the IPv6 packet.
If it is other packets, it is the destination address in the IPv6 packet in ICMPv6’s payload.
sourcepub fn get_identifier(&self) -> u16
pub fn get_identifier(&self) -> u16
Get the identifier of the icmp_v6 packet.
sourcepub fn get_sequence(&self) -> u16
pub fn get_sequence(&self) -> u16
Get the sequence of the icmp_v6 packet.
Trait Implementations
sourceimpl Debug for Icmpv6Packet
impl Debug for Icmpv6Packet
Auto Trait Implementations
impl RefUnwindSafe for Icmpv6Packet
impl Send for Icmpv6Packet
impl Sync for Icmpv6Packet
impl Unpin for Icmpv6Packet
impl UnwindSafe for Icmpv6Packet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more