Struct bl602_sdk::wifi::event [−][src]
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
Auto Trait Implementations
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.