pub struct Hop {
pub ttl: u8,
pub ip: Option<IpAddr>,
pub rtt: Option<Duration>,
pub hostname: Option<String>,
}Expand description
A single traceroute hop.
Fields§
§ttl: u8TTL value for this hop.
ip: Option<IpAddr>IP address of the responding router, None on timeout.
rtt: Option<Duration>Round-trip time to this hop, None on timeout.
hostname: Option<String>Reverse-DNS hostname, when available.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hop
impl<'de> Deserialize<'de> for Hop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Hop
impl StructuralPartialEq for Hop
Auto Trait Implementations§
impl Freeze for Hop
impl RefUnwindSafe for Hop
impl Send for Hop
impl Sync for Hop
impl Unpin for Hop
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more