[−][src]Struct kernel::Callback
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]
pub fn clone(&self) -> Callback
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Callback
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,