pub struct Hop { /* private fields */ }Expand description
Information about a single Hop within a Trace.
Implementations§
Source§impl Hop
impl Hop
Sourcepub fn addrs(&self) -> impl Iterator<Item = &IpAddr>
pub fn addrs(&self) -> impl Iterator<Item = &IpAddr>
The set of addresses that have responded for this time-to-live.
pub fn addrs_with_counts(&self) -> impl Iterator<Item = (&IpAddr, &usize)>
Sourcepub fn addr_count(&self) -> usize
pub fn addr_count(&self) -> usize
The number of unique address observed for this time-to-live.
Sourcepub const fn total_sent(&self) -> usize
pub const fn total_sent(&self) -> usize
The total number of probes sent.
Sourcepub const fn total_recv(&self) -> usize
pub const fn total_recv(&self) -> usize
The total number of probes responses received.
Sourcepub const fn total_forward_loss(&self) -> usize
pub const fn total_forward_loss(&self) -> usize
The total number of probes with forward loss.
Sourcepub const fn total_backward_loss(&self) -> usize
pub const fn total_backward_loss(&self) -> usize
The total number of probes with backward loss.
Sourcepub const fn total_failed(&self) -> usize
pub const fn total_failed(&self) -> usize
The total number of probes that failed.
Sourcepub fn forward_loss_pct(&self) -> f64
pub fn forward_loss_pct(&self) -> f64
The % of packets that are lost forward.
Sourcepub fn backward_loss_pct(&self) -> f64
pub fn backward_loss_pct(&self) -> f64
The % of packets that are lost backward.
Sourcepub const fn last_src_port(&self) -> u16
pub const fn last_src_port(&self) -> u16
The source port for last probe for this hop.
Sourcepub const fn last_dest_port(&self) -> u16
pub const fn last_dest_port(&self) -> u16
The destination port for last probe for this hop.
Sourcepub const fn last_sequence(&self) -> u16
pub const fn last_sequence(&self) -> u16
The sequence number for the last probe for this hop.
Sourcepub const fn last_icmp_packet_type(&self) -> Option<IcmpPacketType>
pub const fn last_icmp_packet_type(&self) -> Option<IcmpPacketType>
The icmp packet type for the last probe for this hop.
Sourcepub const fn last_nat_status(&self) -> NatStatus
pub const fn last_nat_status(&self) -> NatStatus
The NAT detection status for the last probe for this hop.
Sourcepub fn tos(&self) -> Option<TypeOfService>
pub fn tos(&self) -> Option<TypeOfService>
The type of service (DSCP/ECN) for this hop.
pub const fn extensions(&self) -> Option<&Extensions>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hop
impl RefUnwindSafe for Hop
impl Send for Hop
impl Sync for Hop
impl Unpin for Hop
impl UnwindSafe for Hop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more