[][src]Struct mynewt::kernel::os::os_event

#[repr(C)]
pub struct os_event { pub ev_queued: u8, pub ev_cb: os_event_fn, pub ev_arg: *mut c_void, pub ev_next: os_event__bindgen_ty_1, }

Structure representing an OS event. OS events get placed onto the event queues and are consumed by tasks.

Fields

ev_queued: u8

Whether this OS event is queued on an event queue.

ev_cb: os_event_fn

Callback to call when the event is taken off of an event queue. APIs, except for os_eventq_run(), assume this callback will be called by the user.

ev_arg: *mut c_void

Argument to pass to the event queue callback.

ev_next: os_event__bindgen_ty_1

Trait Implementations

impl Default for os_event[src]

Auto Trait Implementations

impl !Send for os_event

impl !Sync for os_event

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]