#[non_exhaustive]pub struct NetworkMonitorDiagnostic {
pub phase: NetworkMonitorPhase,
pub elapsed: Option<Duration>,
pub timeout: Option<Duration>,
}Expand description
Safe monitor failure context, without system messages or network identities.
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.phase: NetworkMonitorPhaseFailure step, or last observed progress when a deadline expired.
elapsed: Option<Duration>Time spent in the observed operation, when measured.
timeout: Option<Duration>Remaining budget when timing of the observed operation began, when known. This can be slightly shorter than the caller’s configured timeout.
Trait Implementations§
Source§impl Clone for NetworkMonitorDiagnostic
impl Clone for NetworkMonitorDiagnostic
impl Copy for NetworkMonitorDiagnostic
Source§impl Debug for NetworkMonitorDiagnostic
impl Debug for NetworkMonitorDiagnostic
impl Eq for NetworkMonitorDiagnostic
Source§impl PartialEq for NetworkMonitorDiagnostic
impl PartialEq for NetworkMonitorDiagnostic
impl StructuralPartialEq for NetworkMonitorDiagnostic
Auto Trait Implementations§
impl Forget for NetworkMonitorDiagnostic
impl Freeze for NetworkMonitorDiagnostic
impl Move for NetworkMonitorDiagnostic
impl RefUnwindSafe for NetworkMonitorDiagnostic
impl Send for NetworkMonitorDiagnostic
impl Sync for NetworkMonitorDiagnostic
impl Unpin for NetworkMonitorDiagnostic
impl UnsafeUnpin for NetworkMonitorDiagnostic
impl UnwindSafe for NetworkMonitorDiagnostic
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