pub enum Connectivity {
Online,
Offline,
Unknown,
}Expand description
Whether the device has a usable network path.
Variants§
Online
A path that can reach the internet.
Offline
No usable path.
Unknown
Nothing observes connectivity: no platform monitor, or one that stopped. A request may still succeed.
Trait Implementations§
Source§impl Clone for Connectivity
impl Clone for Connectivity
impl Copy for Connectivity
Source§impl Debug for Connectivity
impl Debug for Connectivity
Source§impl Default for Connectivity
impl Default for Connectivity
impl Eq for Connectivity
Source§impl PartialEq for Connectivity
impl PartialEq for Connectivity
impl StructuralPartialEq for Connectivity
Auto Trait Implementations§
impl Freeze for Connectivity
impl RefUnwindSafe for Connectivity
impl Send for Connectivity
impl Sync for Connectivity
impl Unpin for Connectivity
impl UnsafeUnpin for Connectivity
impl UnwindSafe for Connectivity
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