WifiEvent

Enum WifiEvent 

Source
#[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,
}
Available on crate feature 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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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<O: Into<EnumSet<WifiEvent>>> BitAnd<O> for WifiEvent

Source§

type Output = EnumSet<WifiEvent>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: O) -> Self::Output

Performs the & operation. Read more
Source§

impl<O: Into<EnumSet<WifiEvent>>> BitOr<O> for WifiEvent

Source§

type Output = EnumSet<WifiEvent>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: O) -> Self::Output

Performs the | operation. Read more
Source§

impl<O: Into<EnumSet<WifiEvent>>> BitXor<O> for WifiEvent

Source§

type Output = EnumSet<WifiEvent>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: O) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Clone for WifiEvent

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WifiEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnumSetConstHelper for WifiEvent

Source§

const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper

The instance of the ConstInitHelper.
Source§

const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper

The instance of the ConstOpHelper.
Source§

type ConstInitHelper = __EnumSetInitHelper

A helper type used to convert values to EnumSets at compile-time.
Source§

type ConstOpHelper = __EnumSetOpHelper

A helper type used to implement compile-time operations on enums.
Source§

impl EnumSetTypePrivate for WifiEvent

Source§

const ALL_BITS: Self::Repr = 35184372088831

A mask of bits that are valid in the bitset.
Source§

const BIT_WIDTH: u32 = 45u32

The largest bit used in the bitset.
Source§

const VARIANT_COUNT: u32 = 45u32

The number of variants in the bitset.
Source§

type Repr = u64

The underlying type used to store the bitset.
Source§

fn enum_into_u32(self) -> u32

Converts an enum of this type into its bit position.
Source§

unsafe fn enum_from_u32(val: u32) -> Self

Converts a bit position into an enum value.
Source§

unsafe fn enum_from_u32_checked(val: u32) -> Self

Converts a bit position into an enum value, with an debug_assert.
Source§

impl Format for WifiEvent

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl FromPrimitive for WifiEvent

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl Hash for WifiEvent

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
Source§

impl Not for WifiEvent

Source§

type Output = EnumSet<WifiEvent>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl PartialEq<EnumSet<WifiEvent>> for WifiEvent

Source§

fn eq(&self, other: &EnumSet<WifiEvent>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for WifiEvent

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<O: Into<EnumSet<WifiEvent>>> Sub<O> for WifiEvent

Source§

type Output = EnumSet<WifiEvent>

The resulting type after applying the - operator.
Source§

fn sub(self, other: O) -> Self::Output

Performs the - operation. Read more
Source§

impl Copy for WifiEvent

Source§

impl EnumSetType for WifiEvent

Source§

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 UnwindSafe for WifiEvent

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.