pub struct TunnelDiagnostics {
pub sdk_version: &'static str,
pub last_attempt_phase: RecoveryPhase,
pub attempts: u64,
pub consecutive_failures: u64,
pub last_failure: Option<RecoveryFailure>,
pub last_success_age_ms: Option<u64>,
pub last_setup_latency_ms: Option<u64>,
pub next_retry_in_ms: Option<u64>,
pub dns_age_ms: Option<u64>,
pub network_generation: u64,
pub active_control_setups: usize,
pub active_data_setups: usize,
}Expand description
A point-in-time view of this tunnel and its process-shared relay budget.
Fields§
§sdk_version: &'static str§last_attempt_phase: RecoveryPhaseMost recent worker phase; use tunnel status for aggregate readiness.
attempts: u64§consecutive_failures: u64§last_failure: Option<RecoveryFailure>§last_success_age_ms: Option<u64>Time since the last authenticated relay reply, even a negative reply.
last_setup_latency_ms: Option<u64>Last answered setup latency, excluding admission queue time.
next_retry_in_ms: Option<u64>§dns_age_ms: Option<u64>§network_generation: u64§active_control_setups: usizeShared across this process for the same configured relay address.
active_data_setups: usizeTrait Implementations§
Source§impl Clone for TunnelDiagnostics
impl Clone for TunnelDiagnostics
Source§fn clone(&self) -> TunnelDiagnostics
fn clone(&self) -> TunnelDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TunnelDiagnostics
impl Debug for TunnelDiagnostics
Source§impl Serialize for TunnelDiagnostics
impl Serialize for TunnelDiagnostics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TunnelDiagnostics
impl RefUnwindSafe for TunnelDiagnostics
impl Send for TunnelDiagnostics
impl Sync for TunnelDiagnostics
impl Unpin for TunnelDiagnostics
impl UnsafeUnpin for TunnelDiagnostics
impl UnwindSafe for TunnelDiagnostics
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> 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> ⓘ
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