esp_wifi::wifi

Enum WifiEvent

Source
#[repr(i32)]
pub enum WifiEvent {
Show 45 variants WifiReady = 0, ScanDone = 1, StaStart = 2, StaStop = 3, StaConnected = 4, StaDisconnected = 5, StaAuthmodeChange = 6, StaWpsErSuccess = 7, StaWpsErFailed = 8, StaWpsErTimeout = 9, StaWpsErPin = 10, StaWpsErPbcOverlap = 11, ApStart = 12, ApStop = 13, ApStaconnected = 14, ApStadisconnected = 15, ApProbereqrecved = 16, FtmReport = 17, StaBssRssiLow = 18, ActionTxStatus = 19, RocDone = 20, StaBeaconTimeout = 21, ConnectionlessModuleWakeIntervalStart = 22, ApWpsRgSuccess = 23, ApWpsRgFailed = 24, ApWpsRgTimeout = 25, ApWpsRgPin = 26, ApWpsRgPbcOverlap = 27, ItwtSetup = 28, ItwtTeardown = 29, ItwtProbe = 30, ItwtSuspend = 31, TwtWakeup = 32, BtwtSetup = 33, BtwtTeardown = 34, NanStarted = 35, NanStopped = 36, NanSvcMatch = 37, NanReplied = 38, NanReceive = 39, NdpIndication = 40, NdpConfirm = 41, NdpTerminated = 42, HomeChannelChange = 43, StaNeighborRep = 44,
}
Expand description

Events generated by the WiFi driver.

Variants§

§

WifiReady = 0

Wi-Fi is ready for operation.

§

ScanDone = 1

Scan operation has completed.

§

StaStart = 2

Station mode started.

§

StaStop = 3

Station mode stopped.

§

StaConnected = 4

Station connected to a network.

§

StaDisconnected = 5

Station disconnected from a network.

§

StaAuthmodeChange = 6

Station authentication mode changed.

§

StaWpsErSuccess = 7

Station WPS succeeds in enrollee mode.

§

StaWpsErFailed = 8

Station WPS fails in enrollee mode.

§

StaWpsErTimeout = 9

Station WPS timeout in enrollee mode.

§

StaWpsErPin = 10

Station WPS pin code in enrollee mode.

§

StaWpsErPbcOverlap = 11

Station WPS overlap in enrollee mode.

§

ApStart = 12

Soft-AP start.

§

ApStop = 13

Soft-AP stop.

§

ApStaconnected = 14

A station connected to Soft-AP.

§

ApStadisconnected = 15

A station disconnected from Soft-AP.

§

ApProbereqrecved = 16

Received probe request packet in Soft-AP interface.

§

FtmReport = 17

Received report of FTM procedure.

§

StaBssRssiLow = 18

AP’s RSSI crossed configured threshold.

§

ActionTxStatus = 19

Status indication of Action Tx operation.

§

RocDone = 20

Remain-on-Channel operation complete.

§

StaBeaconTimeout = 21

Station beacon timeout.

§

ConnectionlessModuleWakeIntervalStart = 22

Connectionless module wake interval has started.

§

ApWpsRgSuccess = 23

Soft-AP WPS succeeded in registrar mode.

§

ApWpsRgFailed = 24

Soft-AP WPS failed in registrar mode.

§

ApWpsRgTimeout = 25

Soft-AP WPS timed out in registrar mode.

§

ApWpsRgPin = 26

Soft-AP WPS pin code in registrar mode.

§

ApWpsRgPbcOverlap = 27

Soft-AP WPS overlap in registrar mode.

§

ItwtSetup = 28

iTWT setup.

§

ItwtTeardown = 29

iTWT teardown.

§

ItwtProbe = 30

iTWT probe.

§

ItwtSuspend = 31

iTWT suspended.

§

TwtWakeup = 32

TWT wakeup event.

§

BtwtSetup = 33

bTWT setup.

§

BtwtTeardown = 34

bTWT teardown.

§

NanStarted = 35

NAN (Neighbor Awareness Networking) discovery has started.

§

NanStopped = 36

NAN discovery has stopped.

§

NanSvcMatch = 37

NAN service discovery match found.

§

NanReplied = 38

Replied to a NAN peer with service discovery match.

§

NanReceive = 39

Received a follow-up message in NAN.

§

NdpIndication = 40

Received NDP (Neighbor Discovery Protocol) request from a NAN peer.

§

NdpConfirm = 41

NDP confirm indication.

§

NdpTerminated = 42

NAN datapath terminated indication.

§

HomeChannelChange = 43

Wi-Fi home channel change, doesn’t occur when scanning.

§

StaNeighborRep = 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 copy 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 EnumSetTypePrivate for WifiEvent

Source§

const CONST_HELPER_INSTANCE: __EnumSetConstHelper = __EnumSetConstHelper

The instance of the ConstHelper.
Source§

const ALL_BITS: Self::Repr = {transmute(0x00001fffffffffff): <wifi::WifiEvent as enumset::__internal::EnumSetTypePrivate>::Repr}

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 ConstHelper = __EnumSetConstHelper

A helper type used to implement the enum_set! macro among other things.
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§

impl From<WifiEvent> for WifiState

Source§

fn from(event: WifiEvent) -> WifiState

Converts to this type from the input type.
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 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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.

§

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.