#[repr(u16)]pub enum ReasonCode {
Show 65 variants
UnspecifiedReason = 1,
InvalidAuthentication = 2,
LeavingNetworkDeauth = 3,
ReasonInactivity = 4,
NoMoreStas = 5,
InvalidClass2Frame = 6,
InvalidClass3Frame = 7,
LeavingNetworkDisassoc = 8,
NotAuthenticated = 9,
UnacceptablePowerCapability = 10,
UnacceptableSupportedChannels = 11,
BssTransitionDisassoc = 12,
ReasonInvalidElement = 13,
MicFailure = 14,
FourwayHandshakeTimeout = 15,
GkHandshakeTimeout = 16,
HandshakeElementMismatch = 17,
ReasonInvalidGroupCipher = 18,
ReasonInvalidPairwiseCipher = 19,
ReasonInvalidAkmp = 20,
UnsupportedRsneVersion = 21,
InvalidRsneCapabilities = 22,
Ieee8021XAuthFailed = 23,
ReasonCipherOutOfPolicy = 24,
TdlsPeerUnreachable = 25,
TdlsUnspecifiedReason = 26,
SspRequestedDisassoc = 27,
NoSspRoamingAgreement = 28,
BadCipherOrAkm = 29,
NotAuthorizedThisLocation = 30,
ServiceChangePrecludesTs = 31,
UnspecifiedQosReason = 32,
NotEnoughBandwidth = 33,
MissingAcks = 34,
ExceededTxop = 35,
StaLeaving = 36,
EndTsBaDls = 37,
UnknownTsBa = 38,
Timeout = 39,
PeerkeyMismatch = 45,
PeerInitiated = 46,
ApInitiated = 47,
ReasonInvalidFtActionFrameCount = 48,
ReasonInvalidPmkid = 49,
ReasonInvalidMde = 50,
ReasonInvalidFte = 51,
MeshPeeringCanceled = 52,
MeshMaxPeers = 53,
MeshConfigurationPolicyViolation = 54,
MeshCloseRcvd = 55,
MeshMaxRetries = 56,
MeshConfirmTimeout = 57,
MeshInvalidGtk = 58,
MeshInconsistentParameters = 59,
MeshInvalidSecurityCapability = 60,
MeshPathErrorNoProxyInformation = 61,
MeshPathErrorNoForwardingInformation = 62,
MeshPathErrorDestinationUnreachable = 63,
MacAddressAlreadyExistsInMbss = 64,
MeshChannelSwitchRegulatoryRequirements = 65,
MeshChannelSwitchUnspecified = 66,
MlmeLinkFailed = 128,
FwRxStalled = 129,
FwHighWmeRxErrRate = 130,
UnknownOrdinal_(u16),
}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 = 1
InvalidAuthentication = 2
LeavingNetworkDeauth = 3
ReasonInactivity = 4
NoMoreStas = 5
InvalidClass2Frame = 6
InvalidClass3Frame = 7
LeavingNetworkDisassoc = 8
NotAuthenticated = 9
UnacceptablePowerCapability = 10
UnacceptableSupportedChannels = 11
BssTransitionDisassoc = 12
ReasonInvalidElement = 13
MicFailure = 14
FourwayHandshakeTimeout = 15
GkHandshakeTimeout = 16
HandshakeElementMismatch = 17
ReasonInvalidGroupCipher = 18
ReasonInvalidPairwiseCipher = 19
ReasonInvalidAkmp = 20
UnsupportedRsneVersion = 21
InvalidRsneCapabilities = 22
Ieee8021XAuthFailed = 23
ReasonCipherOutOfPolicy = 24
TdlsPeerUnreachable = 25
TdlsUnspecifiedReason = 26
SspRequestedDisassoc = 27
NoSspRoamingAgreement = 28
BadCipherOrAkm = 29
NotAuthorizedThisLocation = 30
ServiceChangePrecludesTs = 31
UnspecifiedQosReason = 32
NotEnoughBandwidth = 33
MissingAcks = 34
ExceededTxop = 35
StaLeaving = 36
EndTsBaDls = 37
UnknownTsBa = 38
Timeout = 39
PeerkeyMismatch = 45
PeerInitiated = 46
ApInitiated = 47
ReasonInvalidFtActionFrameCount = 48
ReasonInvalidPmkid = 49
ReasonInvalidMde = 50
ReasonInvalidFte = 51
MeshPeeringCanceled = 52
MeshMaxPeers = 53
MeshConfigurationPolicyViolation = 54
MeshCloseRcvd = 55
MeshMaxRetries = 56
MeshConfirmTimeout = 57
MeshInvalidGtk = 58
MeshInconsistentParameters = 59
MeshInvalidSecurityCapability = 60
MeshPathErrorNoProxyInformation = 61
MeshPathErrorNoForwardingInformation = 62
MeshPathErrorDestinationUnreachable = 63
MacAddressAlreadyExistsInMbss = 64
MeshChannelSwitchRegulatoryRequirements = 65
MeshChannelSwitchUnspecified = 66
MlmeLinkFailed = 128
FwRxStalled = 129
FwHighWmeRxErrRate = 130
UnknownOrdinal_(u16)
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 (const: unstable) · 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<'a, ___E> Encode<ReasonCode, ___E> for &'a ReasonCodewhere
___E: ?Sized,
impl<'a, ___E> Encode<ReasonCode, ___E> for &'a ReasonCodewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ReasonCode>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ReasonCode>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<ReasonCode, ___E> for ReasonCodewhere
___E: ?Sized,
impl<___E> Encode<ReasonCode, ___E> for ReasonCodewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ReasonCode>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ReasonCode>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<ReasonCode> for ReasonCode
impl From<ReasonCode> for ReasonCode
Source§fn from(wire: ReasonCode) -> Self
fn from(wire: ReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<ReasonCode> for ReasonCode
impl From<ReasonCode> for ReasonCode
Source§fn from(natural: ReasonCode) -> Self
fn from(natural: ReasonCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ReasonCode
impl From<u16> for ReasonCode
Source§impl FromWire<ReasonCode> for ReasonCode
impl FromWire<ReasonCode> for ReasonCode
Source§fn from_wire(wire: ReasonCode) -> Self
fn from_wire(wire: ReasonCode) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ReasonCode> for ReasonCode
impl FromWireRef<ReasonCode> for ReasonCode
Source§fn from_wire_ref(wire: &ReasonCode) -> Self
fn from_wire_ref(wire: &ReasonCode) -> Self
Converts the given reference to this type.
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 (const: unstable) · 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§fn eq(&self, other: &ReasonCode) -> bool
fn eq(&self, other: &ReasonCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReasonCode
impl PartialOrd for ReasonCode
impl 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]