#[repr(u16)]pub enum StatusCode {
Show 99 variants
Success,
RefusedReasonUnspecified,
TdlsRejectedAlternativeProvided,
TdlsRejected,
SecurityDisabled,
UnacceptableLifetime,
NotInSameBss,
RefusedCapabilitiesMismatch,
DeniedNoAssociationExists,
DeniedOtherReason,
UnsupportedAuthAlgorithm,
TransactionSequenceError,
ChallengeFailure,
RejectedSequenceTimeout,
DeniedNoMoreStas,
RefusedBasicRatesMismatch,
DeniedNoShortPreambleSupport,
RejectedSpectrumManagementRequired,
RejectedBadPowerCapability,
RejectedBadSupportedChannels,
DeniedNoShortSlotTimeSupport,
DeniedNoHtSupport,
R0KhUnreachable,
DeniedPcoTimeNotSupported,
RefusedTemporarily,
RobustManagementPolicyViolation,
UnspecifiedQosFailure,
DeniedInsufficientBandwidth,
DeniedPoorChannelConditions,
DeniedQosNotSupported,
RequestDeclined,
InvalidParameters,
RejectedWithSuggestedChanges,
StatusInvalidElement,
StatusInvalidGroupCipher,
StatusInvalidPairwiseCipher,
StatusInvalidAkmp,
UnsupportedRsneVersion,
InvalidRsneCapabilities,
StatusCipherOutOfPolicy,
RejectedForDelayPeriod,
DlsNotAllowed,
NotPresent,
NotQosSta,
DeniedListenIntervalTooLarge,
StatusInvalidFtActionFrameCount,
StatusInvalidPmkid,
StatusInvalidMde,
StatusInvalidFte,
RequestedTclasNotSupportedByAp,
InsufficientTclasProcessingResources,
TryAnotherBss,
GasAdvertisementProtocolNotSupported,
NoOutstandingGasRequest,
GasResponseNotReceivedFromServer,
GasQueryTimeout,
GasQueryResponseTooLarge,
RejectedHomeWithSuggestedChanges,
ServerUnreachable,
RejectedForSspPermissions,
RefusedUnauthenticatedAccessNotSupported,
InvalidRsne,
UApsdCoexistanceNotSupported,
UApsdCoexModeNotSupported,
BadIntervalWithUApsdCoex,
AntiCloggingTokenRequired,
UnsupportedFiniteCyclicGroup,
CannotFindAlternativeTbtt,
TransmissionFailure,
RequestedTclasNotSupported,
TclasResourcesExhausted,
RejectedWithSuggestedBssTransition,
RejectWithSchedule,
RejectNoWakeupSpecified,
SuccessPowerSaveMode,
PendingAdmittingFstSession,
PerformingFstNow,
PendingGapInBaWindow,
RejectUPidSetting,
RefusedExternalReason,
RefusedApOutOfMemory,
RejectedEmergencyServicesNotSupported,
QueryResponseOutstanding,
RejectDseBand,
TclasProcessingTerminated,
TsScheduleConflict,
DeniedWithSuggestedBandAndChannel,
MccaopReservationConflict,
MafLimitExceeded,
MccaTrackLimitExceeded,
DeniedDueToSpectrumManagement,
DeniedVhtNotSupported,
EnablementDenied,
RestrictionFromAuthorizedGdb,
AuthorizationDeenabled,
JoinFailure,
SpuriousDeauthOrDisassoc,
Canceled,
EstablishRsnaFailure,
}
Expand description
802.11 status codes. These values are common throughout the standard. IEEE Std 802.11-2016, 9.4.1.9, Table 9-46
Variants§
Success
RefusedReasonUnspecified
TdlsRejectedAlternativeProvided
TdlsRejected
SecurityDisabled
4 reserved.
UnacceptableLifetime
NotInSameBss
RefusedCapabilitiesMismatch
8-9 reserved.
DeniedNoAssociationExists
DeniedOtherReason
UnsupportedAuthAlgorithm
TransactionSequenceError
ChallengeFailure
RejectedSequenceTimeout
DeniedNoMoreStas
RefusedBasicRatesMismatch
DeniedNoShortPreambleSupport
RejectedSpectrumManagementRequired
20-21 reserved.
RejectedBadPowerCapability
RejectedBadSupportedChannels
DeniedNoShortSlotTimeSupport
DeniedNoHtSupport
26 reserved.
R0KhUnreachable
DeniedPcoTimeNotSupported
RefusedTemporarily
RobustManagementPolicyViolation
UnspecifiedQosFailure
DeniedInsufficientBandwidth
DeniedPoorChannelConditions
DeniedQosNotSupported
RequestDeclined
InvalidParameters
RejectedWithSuggestedChanges
StatusInvalidElement
StatusInvalidGroupCipher
StatusInvalidPairwiseCipher
StatusInvalidAkmp
UnsupportedRsneVersion
InvalidRsneCapabilities
StatusCipherOutOfPolicy
RejectedForDelayPeriod
DlsNotAllowed
NotPresent
NotQosSta
DeniedListenIntervalTooLarge
StatusInvalidFtActionFrameCount
StatusInvalidPmkid
StatusInvalidMde
StatusInvalidFte
RequestedTclasNotSupportedByAp
56 is assigned to “REQUESTED_TCLAS_NOT_SUPPORTED_BY_AP” in 802.11-2016, duplicate with 80. Name below is as listed in the 802.11 Assigned Numbers Authority database.
InsufficientTclasProcessingResources
TryAnotherBss
GasAdvertisementProtocolNotSupported
NoOutstandingGasRequest
GasResponseNotReceivedFromServer
GasQueryTimeout
GasQueryResponseTooLarge
RejectedHomeWithSuggestedChanges
ServerUnreachable
RejectedForSspPermissions
66 reserved.
RefusedUnauthenticatedAccessNotSupported
InvalidRsne
69-71 reserved.
UApsdCoexistanceNotSupported
UApsdCoexModeNotSupported
BadIntervalWithUApsdCoex
AntiCloggingTokenRequired
UnsupportedFiniteCyclicGroup
CannotFindAlternativeTbtt
TransmissionFailure
RequestedTclasNotSupported
See assignment for 56.
TclasResourcesExhausted
RejectedWithSuggestedBssTransition
RejectWithSchedule
RejectNoWakeupSpecified
SuccessPowerSaveMode
PendingAdmittingFstSession
PerformingFstNow
PendingGapInBaWindow
RejectUPidSetting
RefusedExternalReason
RefusedApOutOfMemory
RejectedEmergencyServicesNotSupported
QueryResponseOutstanding
RejectDseBand
TclasProcessingTerminated
TsScheduleConflict
DeniedWithSuggestedBandAndChannel
MccaopReservationConflict
MafLimitExceeded
MccaTrackLimitExceeded
DeniedDueToSpectrumManagement
DeniedVhtNotSupported
EnablementDenied
RestrictionFromAuthorizedGdb
AuthorizationDeenabled
JoinFailure
Reserved values we will use for our own purposes.
Failure when joining the BSS.
SpuriousDeauthOrDisassoc
Authenticate or associate fails due to spurious deauth or diassoc.
Canceled
Connect attempt is canceled
EstablishRsnaFailure
Failure establishing security association
Implementations§
source§impl StatusCode
impl StatusCode
pub fn from_primitive(prim: u16) -> Option<Self>
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
source§impl Clone for StatusCode
impl Clone for StatusCode
source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a copy 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 StatusCode
impl Debug for StatusCode
source§impl Decode<StatusCode> for StatusCode
impl Decode<StatusCode> for StatusCode
source§impl Encode<StatusCode> for StatusCode
impl Encode<StatusCode> for StatusCode
source§impl Hash for StatusCode
impl Hash for StatusCode
source§impl Ord for StatusCode
impl Ord for StatusCode
source§fn cmp(&self, other: &StatusCode) -> Ordering
fn cmp(&self, other: &StatusCode) -> 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<StatusCode> for StatusCode
impl PartialEq<StatusCode> for StatusCode
source§fn eq(&self, other: &StatusCode) -> bool
fn eq(&self, other: &StatusCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StatusCode> for StatusCode
impl PartialOrd<StatusCode> for StatusCode
source§fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>
fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for StatusCode
impl TypeMarker for StatusCode
§type Owned = StatusCode
type Owned = StatusCode
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 StatusCode
impl ValueTypeMarker for StatusCode
§type Borrowed<'a> = <StatusCode as TypeMarker>::Owned
type Borrowed<'a> = <StatusCode as TypeMarker>::Owned
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 StatusCode
impl Eq for StatusCode
impl StructuralEq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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