pub enum ReasonCode {
Show 64 variants
    UnspecifiedReason,
    InvalidAuthentication,
    LeavingNetworkDeauth,
    ReasonInactivity,
    NoMoreStas,
    InvalidClass2Frame,
    InvalidClass3Frame,
    LeavingNetworkDisassoc,
    NotAuthenticated,
    UnacceptablePowerCapability,
    UnacceptableSupportedChannels,
    BssTransitionDisassoc,
    ReasonInvalidElement,
    MicFailure,
    FourwayHandshakeTimeout,
    GkHandshakeTimeout,
    HandshakeElementMismatch,
    ReasonInvalidGroupCipher,
    ReasonInvalidPairwiseCipher,
    ReasonInvalidAkmp,
    UnsupportedRsneVersion,
    InvalidRsneCapabilities,
    Ieee8021XAuthFailed,
    ReasonCipherOutOfPolicy,
    TdlsPeerUnreachable,
    TdlsUnspecifiedReason,
    SspRequestedDisassoc,
    NoSspRoamingAgreement,
    BadCipherOrAkm,
    NotAuthorizedThisLocation,
    ServiceChangePrecludesTs,
    UnspecifiedQosReason,
    NotEnoughBandwidth,
    MissingAcks,
    ExceededTxop,
    StaLeaving,
    EndTsBaDls,
    UnknownTsBa,
    Timeout,
    PeerkeyMismatch,
    PeerInitiated,
    ApInitiated,
    ReasonInvalidFtActionFrameCount,
    ReasonInvalidPmkid,
    ReasonInvalidMde,
    ReasonInvalidFte,
    MeshPeeringCanceled,
    MeshMaxPeers,
    MeshConfigurationPolicyViolation,
    MeshCloseRcvd,
    MeshMaxRetries,
    MeshConfirmTimeout,
    MeshInvalidGtk,
    MeshInconsistentParameters,
    MeshInvalidSecurityCapability,
    MeshPathErrorNoProxyInformation,
    MeshPathErrorNoForwardingInformation,
    MeshPathErrorDestinationUnreachable,
    MacAddressAlreadyExistsInMbss,
    MeshChannelSwitchRegulatoryRequirements,
    MeshChannelSwitchUnspecified,
    MlmeLinkFailed,
    FwRxStalled,
    FwHighWmeRxErrRate,
    // some variants omitted
}Expand description
802.11 reason codes. These values are common throughout the standard. IEEE Std 802.11-2016, 9.4.1.7, Table 9-45
Variants§
UnspecifiedReason
InvalidAuthentication
LeavingNetworkDeauth
ReasonInactivity
NoMoreStas
InvalidClass2Frame
InvalidClass3Frame
LeavingNetworkDisassoc
NotAuthenticated
UnacceptablePowerCapability
UnacceptableSupportedChannels
BssTransitionDisassoc
ReasonInvalidElement
MicFailure
FourwayHandshakeTimeout
15 is named “4WAY_HANDSHAKE_TIMEOUT” in 802.11-2016.
GkHandshakeTimeout
HandshakeElementMismatch
ReasonInvalidGroupCipher
ReasonInvalidPairwiseCipher
ReasonInvalidAkmp
UnsupportedRsneVersion
InvalidRsneCapabilities
Ieee8021XAuthFailed
23 is named “802_1_X_AUTH_FAILED” in 802.11-2016.
ReasonCipherOutOfPolicy
TdlsPeerUnreachable
TdlsUnspecifiedReason
SspRequestedDisassoc
NoSspRoamingAgreement
BadCipherOrAkm
NotAuthorizedThisLocation
ServiceChangePrecludesTs
UnspecifiedQosReason
NotEnoughBandwidth
MissingAcks
ExceededTxop
StaLeaving
EndTsBaDls
37 is assigned to multiple names “END_TS”, “END_BA”, and “END_DLS” in 802.11-2016.
UnknownTsBa
38 is assigned to multiple names “UNKNOWN_TS” and “UNKNOWN_BA” in 802.11-2016.
Timeout
PeerkeyMismatch
PeerInitiated
ApInitiated
ReasonInvalidFtActionFrameCount
ReasonInvalidPmkid
ReasonInvalidMde
ReasonInvalidFte
MeshPeeringCanceled
MeshMaxPeers
MeshConfigurationPolicyViolation
MeshCloseRcvd
MeshMaxRetries
MeshConfirmTimeout
MeshInvalidGtk
MeshInconsistentParameters
MeshInvalidSecurityCapability
MeshPathErrorNoProxyInformation
MeshPathErrorNoForwardingInformation
MeshPathErrorDestinationUnreachable
MacAddressAlreadyExistsInMbss
MeshChannelSwitchRegulatoryRequirements
MeshChannelSwitchUnspecified
MlmeLinkFailed
§Values 67 to 127 are reserved by the IEEE protocol, and values 128 to 65535 are reserved for platform use.
MLME lost the link, usually caused by loss of signal with the AP.
FwRxStalled
Driver detected a stalled Rx path in FW.
FwHighWmeRxErrRate
Driver detected high wme rx error rate in FW.
Implementations§
Source§impl ReasonCode
 
impl ReasonCode
pub fn from_primitive(prim: u16) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u16) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for ReasonCode
 
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
 
fn clone(&self) -> ReasonCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ReasonCode
 
impl Debug for ReasonCode
Source§impl<D: ResourceDialect> Decode<ReasonCode, D> for ReasonCode
 
impl<D: ResourceDialect> Decode<ReasonCode, D> for ReasonCode
Source§impl<D: ResourceDialect> Encode<ReasonCode, D> for ReasonCode
 
impl<D: ResourceDialect> Encode<ReasonCode, D> for ReasonCode
Source§impl Hash for ReasonCode
 
impl Hash for ReasonCode
Source§impl Ord for ReasonCode
 
impl Ord for ReasonCode
Source§fn cmp(&self, other: &ReasonCode) -> Ordering
 
fn cmp(&self, other: &ReasonCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReasonCode
 
impl PartialEq for ReasonCode
Source§impl PartialOrd for ReasonCode
 
impl PartialOrd for ReasonCode
Source§impl TypeMarker for ReasonCode
 
impl TypeMarker for ReasonCode
Source§type Owned = ReasonCode
 
type Owned = ReasonCode
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of 
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Returns true if the memory layout of 
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Returns true if the memory layout of 
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for ReasonCode
 
impl ValueTypeMarker for ReasonCode
Source§type Borrowed<'a> = ReasonCode
 
type Borrowed<'a> = ReasonCode
The Rust type to use for encoding. This is a particular 
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Copy for ReasonCode
impl Eq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnwindSafe for ReasonCode
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