pub struct TargetState {
pub display_name: String,
pub resolved_addr: String,
pub buffer: RingBuffer,
pub seq: u64,
pub last_rtt_us: Option<u64>,
pub last_ip: Option<String>,
}Expand description
Per-target probe state.
Fields§
§display_name: StringOriginal display name (e.g., “google.com” or “8.8.8.8”)
resolved_addr: StringResolved IP address used for ICMP probing
buffer: RingBufferRing buffer of recent probe results
seq: u64Total probes sent (used as sequence counter)
last_rtt_us: Option<u64>RTT of the most recent probe in microseconds; None = loss
last_ip: Option<String>Latest responder IP address (used primarily in trace mode)
Implementations§
Auto Trait Implementations§
impl Freeze for TargetState
impl RefUnwindSafe for TargetState
impl Send for TargetState
impl Sync for TargetState
impl Unpin for TargetState
impl UnsafeUnpin for TargetState
impl UnwindSafe for TargetState
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
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>
Converts
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>
Converts
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