Skip to main content

DisconnectReason

Enum DisconnectReason 

Source
#[non_exhaustive]
pub enum DisconnectReason {
Show 60 variants Unspecified, AuthenticationExpired, AuthenticationLeave, DisassociatedDueToInactivity, AssociationTooMany, Class2FrameFromNonAuthenticatedStation, Class3FrameFromNonAssociatedStation, AssociationLeave, AssociationNotAuthenticated, DisassociatedPowerCapabilityBad, DisassociatedUnsupportedChannel, BssTransitionDisassociated, IeInvalid, MicFailure, FourWayHandshakeTimeout, GroupKeyUpdateTimeout, IeIn4wayDiffers, GroupCipherInvalid, PairwiseCipherInvalid, AkmpInvalid, UnsupportedRsnIeVersion, InvalidRsnIeCapabilities, _802_1xAuthenticationFailed, CipherSuiteRejected, TdlsPeerUnreachable, TdlsUnspecified, SspRequestedDisassociation, NoSspRoamingAgreement, BadCipherOrAkm, NotAuthorizedThisLocation, ServiceChangePercludesTs, UnspecifiedQos, NotEnoughBandwidth, MissingAcks, ExceededTxOp, StationLeaving, EndBlockAck, UnknownBlockAck, Timeout, PeerInitiated, AccessPointInitiatedDisassociation, InvalidFtActionFrameCount, InvalidPmkid, InvalidMde, InvalidFte, TransmissionLinkEstablishmentFailed, AlterativeChannelOccupied, BeaconTimeout, NoAccessPointFound, AuthenticationFailed, AssociationFailed, HandshakeTimeout, ConnectionFailed, AccessPointTsfReset, Roaming, AssociationComebackTimeTooLong, SaQueryTimeout, NoAccessPointFoundWithCompatibleSecurity, NoAccessPointFoundInAuthmodeThreshold, NoAccessPointFoundInRssiThreshold,
}
Available on crate feature wifi only.
Expand description

Reason for 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.
§

Unspecified

Unspecified reason

§

AuthenticationExpired

Authentication expired

§

AuthenticationLeave

Deauthentication due to leaving

§

DisassociatedDueToInactivity

Disassociated due to inactivity

§

AssociationTooMany

Too many associated stations

§

Class2FrameFromNonAuthenticatedStation

Class 2 frame received from non authenticated station

§

Class3FrameFromNonAssociatedStation

Class 3 frame received from non associated station

§

AssociationLeave

Disassociated due to leaving

§

AssociationNotAuthenticated

Association but not authenticated

§

DisassociatedPowerCapabilityBad

Disassociated due to poor power capability

§

DisassociatedUnsupportedChannel

Disassociated due to unsupported channel

§

BssTransitionDisassociated

Disassociated due to BSS transition

§

IeInvalid

Invalid Information Element (IE)

§

MicFailure

MIC failure

§

FourWayHandshakeTimeout

4-way handshake timeout

§

GroupKeyUpdateTimeout

Group key update timeout

§

IeIn4wayDiffers

IE differs in 4-way handshake

§

GroupCipherInvalid

Invalid group cipher

§

PairwiseCipherInvalid

Invalid pairwise cipher

§

AkmpInvalid

Invalid AKMP

§

UnsupportedRsnIeVersion

Unsupported RSN IE version

§

InvalidRsnIeCapabilities

Invalid RSN IE capabilities

§

_802_1xAuthenticationFailed

802.1X authentication failed

§

CipherSuiteRejected

Cipher suite rejected

§

TdlsPeerUnreachable

TDLS peer unreachable

§

TdlsUnspecified

TDLS unspecified

§

SspRequestedDisassociation

SSP requested disassociation

§

NoSspRoamingAgreement

No SSP roaming agreement

§

BadCipherOrAkm

Bad cipher or AKM

§

NotAuthorizedThisLocation

Not authorized in this location

§

ServiceChangePercludesTs

Service change precludes TS

§

UnspecifiedQos

Unspecified QoS reason

§

NotEnoughBandwidth

Not enough bandwidth

§

MissingAcks

Missing ACKs

§

ExceededTxOp

Exceeded TXOP

§

StationLeaving

Station leaving

§

EndBlockAck

End of Block Ack (BA)

§

UnknownBlockAck

Unknown Block Ack (BA)

§

Timeout

Timeout

§

PeerInitiated

Peer initiated disassociation

§

AccessPointInitiatedDisassociation

Access point initiated disassociation

§

InvalidFtActionFrameCount

Invalid FT action frame count

§

InvalidPmkid

Invalid PMKID

§

InvalidMde

Invalid MDE

§

InvalidFte

Invalid FTE

§

TransmissionLinkEstablishmentFailed

Transmission link establishment failed

§

AlterativeChannelOccupied

Alternative channel occupied

§

BeaconTimeout

Beacon timeout

§

NoAccessPointFound

No access point found

§

AuthenticationFailed

Authentication failed

§

AssociationFailed

Association failed

§

HandshakeTimeout

Handshake timeout

§

ConnectionFailed

Connection failed

§

AccessPointTsfReset

AP TSF reset

§

Roaming

Roaming

§

AssociationComebackTimeTooLong

Association comeback time too long

§

SaQueryTimeout

SA query timeout

§

NoAccessPointFoundWithCompatibleSecurity

No AP found with compatible security

§

NoAccessPointFoundInAuthmodeThreshold

No AP found in auth mode threshold

§

NoAccessPointFoundInRssiThreshold

No AP found in RSSI threshold

Trait Implementations§

Source§

impl Clone for DisconnectReason

Source§

fn clone(&self) -> DisconnectReason

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

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

Performs copy-assignment from source. Read more
Source§

impl Copy for DisconnectReason

Source§

impl Debug for DisconnectReason

Source§

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

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

impl Eq for DisconnectReason

Source§

impl Format for DisconnectReason

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl Hash for DisconnectReason

Source§

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

Feeds this value into the given [Hasher]. Read more
1.3.0§

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 DisconnectReason

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable)§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DisconnectReason

Auto Trait Implementations§

§

impl Freeze for DisconnectReason

§

impl RefUnwindSafe for DisconnectReason

§

impl Send for DisconnectReason

§

impl Sync for DisconnectReason

§

impl Unpin for DisconnectReason

§

impl UnsafeUnpin for DisconnectReason

§

impl UnwindSafe for DisconnectReason

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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
§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.