[][src]Struct kernel::Callback

pub struct Callback { /* fields omitted */ }

Type for calling a callback in a process.

This is essentially a wrapper around a function pointer.

Implementations

impl Callback[src]

pub fn schedule(&mut self, r0: usize, r1: usize, r2: usize) -> bool[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 Clone for Callback[src]

impl Copy for Callback[src]

Auto Trait Implementations

impl !Send for Callback

impl !Sync for Callback

impl Unpin for Callback

Blanket Implementations

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

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

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

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

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

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, 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.