#[non_exhaustive]#[repr(u32)]pub enum NetworkStatus {
None = 0,
Idle = 1,
LANConnected = 2,
WANConnected = 3,
}Expand description
Represents the current Wi-Fi status
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.
None = 0
Wi-Fi turned off
Idle = 1
Not connected
LANConnected = 2
Connected, only LAN.
WANConnected = 3
Connected to the Internet.
Trait Implementations§
Source§impl Clone for NetworkStatus
impl Clone for NetworkStatus
Source§fn clone(&self) -> NetworkStatus
fn clone(&self) -> NetworkStatus
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkStatus
impl Debug for NetworkStatus
Source§impl PartialEq for NetworkStatus
impl PartialEq for NetworkStatus
impl Copy for NetworkStatus
impl Eq for NetworkStatus
impl StructuralPartialEq for NetworkStatus
Auto Trait Implementations§
impl Freeze for NetworkStatus
impl RefUnwindSafe for NetworkStatus
impl Send for NetworkStatus
impl Sync for NetworkStatus
impl Unpin for NetworkStatus
impl UnwindSafe for NetworkStatus
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)