#[non_exhaustive]pub struct TunnelDiagnostics {Show 16 fields
pub relay_transport: RelayTransport,
pub direct: Option<PathDiagnostics>,
pub port_mapping: Option<PortMappingDiagnostics>,
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,
pub events: Vec<TunnelEvent>,
}Expand description
A point-in-time view of this tunnel and its process-shared relay budget. Non-exhaustive: fields are added as the SDK observes more.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.relay_transport: RelayTransportThe carrier this tunnel reaches the relay over, fixed when it started.
direct: Option<PathDiagnostics>§port_mapping: Option<PortMappingDiagnostics>Present when the tunnel maps its direct endpoint’s port: asked for, with direct allowed.
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: usize§events: Vec<TunnelEvent>The latest outcomes, oldest first; at most 16 entries. Steps along the
way are only in TunnelEvents; see TunnelEventKind.
Trait 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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