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

pub struct DeferredCall<T>(T);

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

Methods

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> Unpin for DeferredCall<T> where
    T: Unpin

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

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

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]