Skip to main content

DisconnectReason

Enum DisconnectReason 

Source
pub enum DisconnectReason {
Show 60 variants Unspecified, AuthExpire, AuthLeave, DisassocDueToInactivity, AssocToomany, Class2FrameFromNonauthSta, Class3FrameFromNonassocSta, AssocLeave, AssocNotAuthed, DisassocPwrcapBad, DisassocSupchanBad, BssTransitionDisassoc, IeInvalid, MicFailure, FourWayHandshakeTimeout, GroupKeyUpdateTimeout, IeIn4wayDiffers, GroupCipherInvalid, PairwiseCipherInvalid, AkmpInvalid, UnsuppRsnIeVersion, InvalidRsnIeCap, AuthFailed, CipherSuiteRejected, TdlsPeerUnreachable, TdlsUnspecified, SspRequestedDisassoc, NoSspRoamingAgreement, BadCipherOrAkm, NotAuthorizedThisLocation, ServiceChangePercludesTs, UnspecifiedQos, NotEnoughBandwidth, MissingAcks, ExceededTxop, StaLeaving, EndBa, UnknownBa, Timeout, PeerInitiated, ApInitiated, InvalidFtActionFrameCount, InvalidPmkid, InvalidMde, InvalidFte, TransmissionLinkEstablishFailed, AlterativeChannelOccupied, BeaconTimeout, NoApFound, AuthFail, AssocFail, HandshakeTimeout, ConnectionFail, ApTsfReset, Roaming, AssocComebackTimeTooLong, SaQueryTimeout, NoApFoundWCompatibleSecurity, NoApFoundInAuthmodeThreshold, NoApFoundInRssiThreshold,
}

Variants§

§

Unspecified

Unspecified reason

§

AuthExpire

Authentication expired

§

AuthLeave

Deauthentication due to leaving

§

DisassocDueToInactivity

Disassociated due to inactivity

§

AssocToomany

Too many associated stations

§

Class2FrameFromNonauthSta

Class 2 frame received from nonauthenticated STA

§

Class3FrameFromNonassocSta

Class 3 frame received from nonassociated STA

§

AssocLeave

Deassociated due to leaving

§

AssocNotAuthed

Association but not authenticated

§

DisassocPwrcapBad

Disassociated due to poor power capability

§

DisassocSupchanBad

Disassociated due to unsupported channel

§

BssTransitionDisassoc

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

§

UnsuppRsnIeVersion

Unsupported RSN IE version

§

InvalidRsnIeCap

Invalid RSN IE capabilities

§

AuthFailed

802.1X authentication failed

§

CipherSuiteRejected

Cipher suite rejected

§

TdlsPeerUnreachable

TDLS peer unreachable

§

TdlsUnspecified

TDLS unspecified

§

SspRequestedDisassoc

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 Quality of Service reason

§

NotEnoughBandwidth

Not enough bandwidth

§

MissingAcks

Missing ACKs

§

ExceededTxop

Exceeded TXOP

§

StaLeaving

Station leaving

§

EndBa

End of Block Ack (BA)

§

UnknownBa

Unknown Block Ack (BA)

§

Timeout

Timeout

§

PeerInitiated

Peer initiated disassociation

§

ApInitiated

AP initiated disassociation

§

InvalidFtActionFrameCount

Invalid FT action frame count

§

InvalidPmkid

Invalid PMKID

§

InvalidMde

Invalid MDE

§

InvalidFte

Invalid FTE

§

TransmissionLinkEstablishFailed

Transmission link establishment failed

§

AlterativeChannelOccupied

Alternative channel occupied

§

BeaconTimeout

Beacon timeout

§

NoApFound

No AP found

§

AuthFail

Authentication failed

§

AssocFail

Association failed

§

HandshakeTimeout

Handshake timeout

§

ConnectionFail

Connection failed

§

ApTsfReset

AP TSF reset

§

Roaming

Roaming

§

AssocComebackTimeTooLong

Association comeback time too long

§

SaQueryTimeout

SA query timeout

§

NoApFoundWCompatibleSecurity

No AP found with compatible security

§

NoApFoundInAuthmodeThreshold

No AP found in auth mode threshold

§

NoApFoundInRssiThreshold

No AP found in RSSI threshold

Implementations§

Source§

impl DisconnectReason

Source

pub const fn as_str(&self) -> &'static str

Human-readable (but technical) message.

The first letter is lowercase unless the first word is an abbreviation. No punctuation at the end.

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) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for DisconnectReason

Source§

impl From<DisconnectReason> for u8

Source§

fn from(value: DisconnectReason) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for DisconnectReason

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DisconnectReason

Source§

fn eq(&self, other: &DisconnectReason) -> 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 DisconnectReason

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> 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 = Infallible

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

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

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.