#[non_exhaustive]pub enum InterfaceEventKind {
SourceReady,
SourceUnavailable {
error: NetError,
native_code: Option<i64>,
},
SourceGap {
error: NetError,
native_code: Option<i64>,
},
WlanConnected {
interface_id: String,
native_code: u32,
reason_code: Option<u32>,
},
WlanDisconnected {
interface_id: String,
native_code: u32,
reason_code: Option<u32>,
},
DefaultRouteObserved {
family: InterfaceAddressFamily,
state: DefaultRouteState,
},
DefaultRouteChanged {
family: InterfaceAddressFamily,
previous: String,
current: String,
},
DefaultRouteQueryFailed {
family: InterfaceAddressFamily,
error: NetError,
native_code: Option<i64>,
},
}Expand description
A change, baseline, or source diagnostic in the opt-in interface event stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SourceReady
This source started observing.
This source could not collect evidence. Other selected sources can continue.
SourceGap
The source detected a gap in its coverage. Historical entries are not replayed.
WlanConnected
A successful WLAN connection. The native code is the provider’s event ID. The interface GUID is in lower-case hyphenated form, without braces.
WlanDisconnected
A WLAN disconnect record, with the native event ID and optional numeric reason.
DefaultRouteObserved
Initial baseline, recovery, or a change involving a non-unique or absent route.
DefaultRouteChanged
Two consecutive successful observations uniquely identified different interfaces.
DefaultRouteQueryFailed
A read failed and invalidated the comparison baseline for this family.
Trait Implementations§
Source§impl Clone for InterfaceEventKind
impl Clone for InterfaceEventKind
Auto Trait Implementations§
impl !RefUnwindSafe for InterfaceEventKind
impl !UnwindSafe for InterfaceEventKind
impl Forget for InterfaceEventKind
impl Freeze for InterfaceEventKind
impl Move for InterfaceEventKind
impl Send for InterfaceEventKind
impl Sync for InterfaceEventKind
impl Unpin for InterfaceEventKind
impl UnsafeUnpin for InterfaceEventKind
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