[][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.


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[src]

impl !Sync for Callback[src]

impl Unpin for Callback[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.