[][src]Struct kernel::procs::FunctionCall

pub struct FunctionCall {
    pub source: FunctionCallSource,
    pub argument0: usize,
    pub argument1: usize,
    pub argument2: usize,
    pub argument3: usize,
    pub pc: usize,
}

Struct that defines a callback that can be passed to a process. The callback takes four arguments that are Driver and callback specific, so they are represented generically here.

Likely these four arguments will get passed as the first four register values, but this is architecture-dependent.

A FunctionCall also identifies the callback that scheduled it, if any, so that it can be unscheduled when the process unsubscribes from this callback.

Fields

source: FunctionCallSourceargument0: usizeargument1: usizeargument2: usizeargument3: usizepc: usize

Trait Implementations

impl Debug for FunctionCall[src]

impl Copy for FunctionCall[src]

impl Clone for FunctionCall[src]

Auto Trait Implementations

impl Unpin for FunctionCall

impl Send for FunctionCall

impl Sync for FunctionCall

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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