[][src]Struct kernel::common::deferred_call::DeferredCall

pub struct DeferredCall<T>(_);

Represents a way to generate an asynchronous call without a hardware interrupt. Supports up to 32 possible deferrable tasks.


impl<T: Into<usize> + TryFrom<usize> + Copy> DeferredCall<T>[src]

pub const unsafe fn new(task: T) -> Self[src]

Creates a new DeferredCall

Only create one per task, preferably in the module that it will be used in.

pub fn set(&self)[src]

Set the DeferredCall as pending

pub fn next_pending() -> Option<T>[src]

Gets and clears the next pending DeferredCall

Auto Trait Implementations

impl<T> Send for DeferredCall<T> where
    T: Send

impl<T> Sync for DeferredCall<T> where
    T: Sync

impl<T> Unpin for DeferredCall<T> where
    T: Unpin

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.