Skip to main content

NetworkStatus

Enum NetworkStatus 

Source
#[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

Source

pub const fn value(self) -> u8

The value the enum encodes as.

Source

pub const fn is_success(self) -> bool

Whether this is NetworkStatus::Success.

Trait Implementations§

Source§

impl Clone for NetworkStatus

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NetworkStatus

Source§

impl Debug for NetworkStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for NetworkStatus

Source§

impl Hash for NetworkStatus

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for NetworkStatus

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NetworkStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.