Struct kernel::callback::Callback
[−]
[src]
pub struct Callback { app_id: AppId, appdata: usize, fn_ptr: RustOrRawFnPtr, }
Wrapper around a function pointer.
Fields
app_id: AppId
appdata: usize
fn_ptr: RustOrRawFnPtr
Methods
impl Callback
[src]
pub fn new(appid: AppId, appdata: usize, fn_ptr: NonZero<*mut ()>) -> Callback
[src]
pub const fn kernel_new(
appid: AppId,
fn_ptr: fn(_: usize, _: usize, _: usize, _: usize)
) -> Callback
[src]
appid: AppId,
fn_ptr: fn(_: usize, _: usize, _: usize, _: usize)
) -> Callback
pub fn schedule(&mut self, r0: usize, r1: usize, r2: usize) -> bool
[src]
pub fn app_id(&self) -> AppId
[src]
Trait Implementations
impl Clone for Callback
[src]
fn clone(&self) -> Callback
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Callback
[src]
impl Debug for Callback
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more