#[non_exhaustive]pub enum NetworkEventKind {
Initial,
ObservationReady,
ReachabilityChanged {
previous: NetworkStatus,
current: NetworkStatus,
},
LifecycleChanged,
}Expand description
Lifecycle notifications never manufacture a network disconnection.
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.
Initial
Atomic subscription baseline; all later events follow this cursor.
ObservationReady
The first usable observation after activation or monitor initialization.
ReachabilityChanged
A committed transition between two known reachability values.
LifecycleChanged
Starting, stopping, failure, or permanent shutdown.
Trait Implementations§
Source§impl Clone for NetworkEventKind
impl Clone for NetworkEventKind
impl Copy for NetworkEventKind
Source§impl Debug for NetworkEventKind
impl Debug for NetworkEventKind
impl Eq for NetworkEventKind
Source§impl PartialEq for NetworkEventKind
impl PartialEq for NetworkEventKind
impl StructuralPartialEq for NetworkEventKind
Auto Trait Implementations§
impl Forget for NetworkEventKind
impl Freeze for NetworkEventKind
impl Move for NetworkEventKind
impl RefUnwindSafe for NetworkEventKind
impl Send for NetworkEventKind
impl Sync for NetworkEventKind
impl Unpin for NetworkEventKind
impl UnsafeUnpin for NetworkEventKind
impl UnwindSafe for NetworkEventKind
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