pub enum StatusCode {
Show 117 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,
    EnergyLimitedOperationNotSupported,
    RejectedNdpBlockAckSuggested,
    RejectedMaxAwayDurationUnacceptable,
    FlowControlOperationSupported,
    FilsAuthenticationFailure,
    UnknownAuthenticationServer,
    DeniedNotificationPeriodAllocation,
    DeniedChannelSplitting,
    DeniedAllocation,
    CmmgFeaturesNotSupported,
    GasFragmentNotAvailable,
    SuccessCagVersionsMatch,
    GlkNotAuthorized,
    UnknownPasswordIdentifier,
    DeniedLocalMacAddressPolicyViolation,
    SaeHashToElement,
    TclasProcessingTerminatedInsufficientQos,
    TclasProcessingTerminatedPolicyConflict,
    JoinFailure,
    SpuriousDeauthOrDisassoc,
    Canceled,
    EstablishRsnaFailure,
    // some variants omitted
}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
36 reserved.
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
90-91 reserved.
RefusedApOutOfMemory
RejectedEmergencyServicesNotSupported
QueryResponseOutstanding
RejectDseBand
TclasProcessingTerminated
TsScheduleConflict
DeniedWithSuggestedBandAndChannel
MccaopReservationConflict
MafLimitExceeded
MccaTrackLimitExceeded
DeniedDueToSpectrumManagement
DeniedVhtNotSupported
EnablementDenied
RestrictionFromAuthorizedGdb
AuthorizationDeenabled
EnergyLimitedOperationNotSupported
RejectedNdpBlockAckSuggested
RejectedMaxAwayDurationUnacceptable
FlowControlOperationSupported
FilsAuthenticationFailure
UnknownAuthenticationServer
DeniedNotificationPeriodAllocation
114-115 reserved.
DeniedChannelSplitting
DeniedAllocation
CmmgFeaturesNotSupported
GasFragmentNotAvailable
SuccessCagVersionsMatch
GlkNotAuthorized
UnknownPasswordIdentifier
DeniedLocalMacAddressPolicyViolation
124 reserved.
SaeHashToElement
TclasProcessingTerminatedInsufficientQos
127 reserved.
TclasProcessingTerminatedPolicyConflict
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 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 StatusCode
 
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
 
fn clone(&self) -> StatusCode
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 StatusCode
 
impl Debug for StatusCode
Source§impl<D: ResourceDialect> Decode<StatusCode, D> for StatusCode
 
impl<D: ResourceDialect> Decode<StatusCode, D> for StatusCode
Source§impl<D: ResourceDialect> Encode<StatusCode, D> for StatusCode
 
impl<D: ResourceDialect> Encode<StatusCode, D> 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 for StatusCode
 
impl PartialEq for StatusCode
Source§impl PartialOrd for StatusCode
 
impl PartialOrd for StatusCode
Source§impl TypeMarker for StatusCode
 
impl TypeMarker for StatusCode
Source§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
Source§type Borrowed<'a> = StatusCode
 
type Borrowed<'a> = StatusCode
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 StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
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