#[non_exhaustive]#[repr(u8)]pub enum NetworkStatus {
Show 13 variants
Success = 0,
OutOfRange = 1,
BoundsExceeded = 2,
NetworkIdNotFound = 3,
DuplicateNetworkId = 4,
NetworkNotFound = 5,
RegulatoryError = 6,
AuthFailure = 7,
UnsupportedSecurity = 8,
OtherConnectionFailure = 9,
Ipv6Failed = 10,
IpBindFailed = 11,
UnknownError = 12,
}Expand description
NetworkCommissioningStatusEnum (§11.9.5.4).
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.
Success = 0
0 — OK, no error.
OutOfRange = 1
1 — value outside range.
BoundsExceeded = 2
2 — “A collection would exceed its size limit”.
NetworkIdNotFound = 3
3 — “The NetworkID is not among the collection of added networks”.
DuplicateNetworkId = 4
4 — “The NetworkID is already among the collection of added networks”.
NetworkNotFound = 5
5 — “Cannot find AP: SSID Not found”.
RegulatoryError = 6
6 — “Cannot find AP: Mismatch on band/channels/regulatory domain / 2.4GHz vs 5GHz”.
AuthFailure = 7
7 — “Cannot associate due to authentication failure”.
UnsupportedSecurity = 8
8 — “Cannot associate due to unsupported security mode”.
OtherConnectionFailure = 9
9 — “Other association failure”.
Ipv6Failed = 10
10 — “Failure to generate an IPv6 address”.
IpBindFailed = 11
11 — “Failure to bind Wi-Fi <-> IP interfaces”.
UnknownError = 12
12 — unknown error.
Implementations§
Source§impl NetworkStatus
impl NetworkStatus
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Whether this is NetworkStatus::Success.
Trait Implementations§
Source§impl Clone for NetworkStatus
impl Clone for NetworkStatus
impl Copy for NetworkStatus
Source§impl Debug for NetworkStatus
impl Debug for NetworkStatus
impl Eq for NetworkStatus
Source§impl Hash for NetworkStatus
impl Hash for NetworkStatus
Source§impl PartialEq for NetworkStatus
impl PartialEq for NetworkStatus
impl StructuralPartialEq for NetworkStatus
Auto Trait Implementations§
impl Forget for NetworkStatus
impl Freeze for NetworkStatus
impl Move for NetworkStatus
impl RefUnwindSafe for NetworkStatus
impl Send for NetworkStatus
impl Sync for NetworkStatus
impl Unpin for NetworkStatus
impl UnsafeUnpin for NetworkStatus
impl UnwindSafe for NetworkStatus
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