pub struct DiscoveredPath {
pub flow_id: FlowId,
pub flow_hash: u16,
pub hops: Vec<Hop>,
pub reaches_destination: bool,
pub total_rtt: Option<Duration>,
pub nat_count: usize,
pub quality_score: f64,
pub last_updated: Instant,
}Expand description
A discovered path (sequence of hops for a specific flow).
Fields§
§flow_id: FlowIdFlow ID used for this path.
flow_hash: u16Flow hash for this path.
hops: Vec<Hop>Hops along this path.
reaches_destination: boolWhether the path reaches the destination.
total_rtt: Option<Duration>Total path RTT (to destination or last responding hop).
nat_count: usizeNumber of NAT devices detected on this path.
quality_score: f64Path quality score (0.0 - 1.0).
last_updated: InstantLast update time.
Implementations§
Source§impl DiscoveredPath
impl DiscoveredPath
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if this path is complete.
Sourcepub fn hop_at_ttl(&self, ttl: u8) -> Option<&Hop>
pub fn hop_at_ttl(&self, ttl: u8) -> Option<&Hop>
Get hop at a specific TTL.
Trait Implementations§
Source§impl Clone for DiscoveredPath
impl Clone for DiscoveredPath
Source§fn clone(&self) -> DiscoveredPath
fn clone(&self) -> DiscoveredPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredPath
impl RefUnwindSafe for DiscoveredPath
impl Send for DiscoveredPath
impl Sync for DiscoveredPath
impl Unpin for DiscoveredPath
impl UnwindSafe for DiscoveredPath
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