[][src]Struct kernel::Callback

pub struct Callback {
    app_id: AppId,
    appdata: usize,
    fn_ptr: NonNull<*mut ()>,
}

Type for calling a callback in a process.

This is essentially a wrapper around a function pointer.

Fields

Methods

impl Callback
[src]

Actually trigger the callback.

This will queue the Callback for the associated process. It returns false if the queue for the process is full and the callback could not be scheduled.

The arguments (r0-r2) are the values passed back to the process and are specific to the individual Driver interfaces.

Trait Implementations

impl Copy for Callback
[src]

impl Clone for Callback
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Callback

impl !Sync for Callback

Blanket Implementations

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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