#[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§
Auto Trait Implementations§
impl Freeze for event
impl RefUnwindSafe for event
impl !Send for event
impl !Sync for event
impl Unpin for event
impl UnwindSafe for event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more