Struct bl602_sdk::wifi::event[][src]

#[repr(C)]
pub struct event { pub type_: c_int, pub data: *mut c_void, }
Expand description

\brief Event

Events trigger transitions from a state to another. Event types are defined by the user. Any event may optionally contain a \ref #event::data “payload”.

\sa state \sa transition

Fields

type_: c_int

\brief Type of event. Defined by user.

data: *mut c_void

\brief Event payload.

How this is used is entirely up to the user. This data is always passed together with #type in order to make it possible to always cast the data correctly.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.