pub enum ProbeStatus {
NotSent,
Skipped,
Failed(ProbeFailed),
Awaited(Probe),
Complete(ProbeComplete),
}Expand description
A network tracing probe.
A Probe is a packet sent across the network to trace the path to a target host.
It contains information such as sequence number, trace identifier, ports, and TTL.
A probe is always in one of the following states:
NotSent- The probe has not been sent.Skipped- The probe was skipped.Awaited- The probe has been sent and is awaiting a response.Complete- The probe has been sent and a response has been received.
Variants§
NotSent
The probe has not been sent.
Skipped
The probe was skipped.
A probe may be skipped if, for TCP, it could not be bound to a local
port. When a probe is skipped, it will be marked as Skipped and a
new probe will be sent with the same TTL next available sequence number.
Failed(ProbeFailed)
The probe has failed.
A probe is considered failed when an error occurs while sending or receiving.
Awaited(Probe)
The probe has been sent and is awaiting a response.
If no response is received within the timeout, the probe will remain in this state indefinitely.
Complete(ProbeComplete)
The probe has been sent and a response has been received.
Trait Implementations§
Source§impl Clone for ProbeStatus
impl Clone for ProbeStatus
Source§fn clone(&self) -> ProbeStatus
fn clone(&self) -> ProbeStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProbeStatus
impl Debug for ProbeStatus
Source§impl Default for ProbeStatus
impl Default for ProbeStatus
Source§fn default() -> ProbeStatus
fn default() -> ProbeStatus
Source§impl PartialEq for ProbeStatus
impl PartialEq for ProbeStatus
impl Eq for ProbeStatus
impl StructuralPartialEq for ProbeStatus
Auto Trait Implementations§
impl Freeze for ProbeStatus
impl RefUnwindSafe for ProbeStatus
impl Send for ProbeStatus
impl Sync for ProbeStatus
impl Unpin for ProbeStatus
impl UnwindSafe for ProbeStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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