[][src]Struct sunrise_libuser::futures::Task

struct Task<'a> {
    future: LocalFutureObj<'a, ()>,
    waker: Option<Arc<QueueWaker<'a>>>,
    waiting_on: Vec<u32>,
}

A Task represents a future spawned on the WaitableManager.

Fields

future: LocalFutureObj<'a, ()>

The future backing this task. When the task is woken up, this future gets polled.

waker: Option<Arc<QueueWaker<'a>>>

The waker used to wake this task up from sleep, rescheduling it to be polled.

waiting_on: Vec<u32>

List of handles that this task is currently waiting on.

Trait Implementations

impl<'a> Debug for Task<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Task<'a>

impl<'a> !Send for Task<'a>

impl<'a> !Sync for Task<'a>

impl<'a> Unpin for Task<'a>

impl<'a> !UnwindSafe for Task<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer 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> 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.