#[non_exhaustive]#[repr(i32)]pub enum WifiEvent {
Show 45 variants
WifiReady = 0,
ScanDone = 1,
StationStart = 2,
StationStop = 3,
StationConnected = 4,
StationDisconnected = 5,
StationAuthenticationModeChange = 6,
StationWifiProtectedStatusEnrolleeSuccess = 7,
StationWifiProtectedStatusEnrolleeFailed = 8,
StationWifiProtectedStatusEnrolleeTimeout = 9,
StationWifiProtectedStatusEnrolleePin = 10,
StationWifiProtectedStatusEnrolleePushButtonConfigurationOverlap = 11,
AccessPointStart = 12,
AccessPointStop = 13,
AccessPointStationConnected = 14,
AccessPointStationDisconnected = 15,
AccessPointProbeRequestReceived = 16,
FineTimingMeasurementReport = 17,
StationBasicServiceSetReceivedSignalStrengthIndicatorLow = 18,
ActionTransmissionStatus = 19,
RemainOnChannelDone = 20,
StationBeaconTimeout = 21,
ConnectionlessModuleWakeIntervalStart = 22,
AccessPointWifiProtectedStatusRegistrarSuccess = 23,
AccessPointWifiProtectedStatusRegistrarFailed = 24,
AccessPointWifiProtectedStatusRegistrarTimeout = 25,
AccessPointWifiProtectedStatusRegistrarPin = 26,
AccessPointWifiProtectedStatusRegistrarPushButtonConfigurationOverlap = 27,
IndividualTargetWakeTimeSetup = 28,
IndividualTargetWakeTimeTeardown = 29,
IndividualTargetWakeTimeProbe = 30,
IndividualTargetWakeTimeSuspend = 31,
TargetWakeTimeWakeup = 32,
BroadcastTargetWakeTimeSetup = 33,
BroadcastTargetWakeTimeTeardown = 34,
NeighborAwarenessNetworkingStarted = 35,
NeighborAwarenessNetworkingStopped = 36,
NeighborAwarenessNetworkingServiceMatch = 37,
NeighborAwarenessNetworkingReplied = 38,
NeighborAwarenessNetworkingReceive = 39,
NeighborDiscoveryProtocolIndication = 40,
NeighborDiscoveryProtocolConfirmation = 41,
NeighborDiscoveryProtocolTerminated = 42,
HomeChannelChange = 43,
StationNeighborRep = 44,
}unstable only.Expand description
Events generated by the Wi-Fi driver.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WifiReady = 0
Wi-Fi is ready for operation.
ScanDone = 1
Scan operation has completed.
StationStart = 2
Station mode started.
StationStop = 3
Station mode stopped.
StationConnected = 4
Station connected to a network.
StationDisconnected = 5
Station disconnected from a network.
StationAuthenticationModeChange = 6
Station authentication mode changed.
StationWifiProtectedStatusEnrolleeSuccess = 7
Station Wi-Fi-Protected-Status succeeds in enrollee mode.
StationWifiProtectedStatusEnrolleeFailed = 8
Station Wi-Fi-Protected-Status fails in enrollee mode.
StationWifiProtectedStatusEnrolleeTimeout = 9
Station Wi-Fi-Protected-Status timeout in enrollee mode.
StationWifiProtectedStatusEnrolleePin = 10
Station Wi-Fi-Protected-Status pin code in enrollee mode.
StationWifiProtectedStatusEnrolleePushButtonConfigurationOverlap = 11
Station Wi-Fi-Protected-Status overlap in enrollee mode.
AccessPointStart = 12
Soft-AccessPoint start.
AccessPointStop = 13
Soft-AccessPoint stop.
AccessPointStationConnected = 14
A station connected to Soft-AccessPoint.
AccessPointStationDisconnected = 15
A station disconnected from Soft-AccessPoint.
AccessPointProbeRequestReceived = 16
Received probe request packet in Soft-AccessPoint interface.
FineTimingMeasurementReport = 17
Received report of Fine-Timing-Measurement procedure.
StationBasicServiceSetReceivedSignalStrengthIndicatorLow = 18
Station Receive-Signal-Strenght-Indicator goes below the configured threshold.
ActionTransmissionStatus = 19
Status indication of Action Transmission operation.
RemainOnChannelDone = 20
Remain-on-Channel operation complete.
StationBeaconTimeout = 21
Station beacon timeout.
ConnectionlessModuleWakeIntervalStart = 22
Connectionless module wake interval has started.
AccessPointWifiProtectedStatusRegistrarSuccess = 23
Soft-AccessPoint Wi-Fi-Protected-Status succeeded in registrar mode.
AccessPointWifiProtectedStatusRegistrarFailed = 24
Soft-AccessPoint Wi-Fi-Protected-Status failed in registrar mode.
AccessPointWifiProtectedStatusRegistrarTimeout = 25
Soft-AccessPoint Wi-Fi-Protected-Status timed out in registrar mode.
AccessPointWifiProtectedStatusRegistrarPin = 26
Soft-AccessPoint Wi-Fi-Protected-Status pin code in registrar mode.
AccessPointWifiProtectedStatusRegistrarPushButtonConfigurationOverlap = 27
Soft-AccessPoint Wi-Fi-Protected-Status overlap in registrar mode.
IndividualTargetWakeTimeSetup = 28
Individual Target-Wake-Time setup.
IndividualTargetWakeTimeTeardown = 29
Individual Target-Wake-Time teardown.
IndividualTargetWakeTimeProbe = 30
Individual Target-Wake-Time probe.
IndividualTargetWakeTimeSuspend = 31
Individual Target-Wake-Time suspended.
TargetWakeTimeWakeup = 32
Target-Wake-Wakeup event.
BroadcastTargetWakeTimeSetup = 33
Broadcast-Target-Wake-Time setup.
BroadcastTargetWakeTimeTeardown = 34
Broadcast-Target-Wake-Time teardown.
NeighborAwarenessNetworkingStarted = 35
Neighbor-Awareness-Networking discovery has started.
NeighborAwarenessNetworkingStopped = 36
Neighbor-Awareness-Networking discovery has stopped.
NeighborAwarenessNetworkingServiceMatch = 37
Neighbor-Awareness-Networking service discovery match found.
NeighborAwarenessNetworkingReplied = 38
Replied to a Neighbor-Awareness-Networking peer with service discovery match.
NeighborAwarenessNetworkingReceive = 39
Received a follow-up message in Neighbor-Awareness-Networking.
NeighborDiscoveryProtocolIndication = 40
Received NDP (Neighbor Discovery Protocol) request from a Neighbor-Awareness-Networking peer.
NeighborDiscoveryProtocolConfirmation = 41
NDP confirm indication.
NeighborDiscoveryProtocolTerminated = 42
Neighbor-Awareness-Networking datapath terminated indication.
HomeChannelChange = 43
Wi-Fi home channel change, doesn’t occur when scanning.
StationNeighborRep = 44
Received Neighbor Report response.
Trait Implementations§
Source§impl EnumSetConstHelper for WifiEvent
impl EnumSetConstHelper for WifiEvent
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
Source§impl EnumSetTypePrivate for WifiEvent
impl EnumSetTypePrivate for WifiEvent
Source§const VARIANT_COUNT: u32 = 45u32
const VARIANT_COUNT: u32 = 45u32
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
Source§impl FromPrimitive for WifiEvent
impl FromPrimitive for WifiEvent
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Copy for WifiEvent
impl EnumSetType for WifiEvent
impl Eq for WifiEvent
Auto Trait Implementations§
impl Freeze for WifiEvent
impl RefUnwindSafe for WifiEvent
impl Send for WifiEvent
impl Sync for WifiEvent
impl Unpin for WifiEvent
impl UnsafeUnpin for WifiEvent
impl UnwindSafe for WifiEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)