#[non_exhaustive]pub struct WindowsReachabilityDiagnostic {
pub operation: WindowsReachabilityOperation,
pub hresult: u32,
}Expand description
The original native failure from Windows Internet-reachability sampling.
These details supplement super::ErrorKind::Io and
super::ErrorStage::NetworkMonitor. The original Windows error remains
available through std::error::Error::source on super::NetError.
No system error text, machine name or network name is retained here.
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.operation: WindowsReachabilityOperationNative operation that returned this failure.
hresult: u32Original HRESULT’s 32-bit bit pattern, without Win32 error conversion.
Format with format!("0x{:08X}", detail.hresult) for fixed-width hex.
Trait Implementations§
impl Copy for WindowsReachabilityDiagnostic
impl Eq for WindowsReachabilityDiagnostic
impl StructuralPartialEq for WindowsReachabilityDiagnostic
Auto Trait Implementations§
impl Forget for WindowsReachabilityDiagnostic
impl Freeze for WindowsReachabilityDiagnostic
impl Move for WindowsReachabilityDiagnostic
impl RefUnwindSafe for WindowsReachabilityDiagnostic
impl Send for WindowsReachabilityDiagnostic
impl Sync for WindowsReachabilityDiagnostic
impl Unpin for WindowsReachabilityDiagnostic
impl UnsafeUnpin for WindowsReachabilityDiagnostic
impl UnwindSafe for WindowsReachabilityDiagnostic
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