[][src]Trait cooked_waker::Wake

pub trait Wake: WakeRef + Sized {
    fn wake(self) { ... }
}

Wakers that can wake by value. This is the primary means of waking a task.

This trait is implemented for most container types, like Box<T: Wake> and Option<T: Wake>. It is also implemented for shared pointer types like Arc<T> and &T, but those implementations call T::wake_by_ref, because they don't have ownership of the underlying T.

Provided methods

fn wake(self)

Wake up the task by value. By default, this simply calls WakeRef::wake_by_ref.

A Waker created by IntoWaker will call this method through Waker::wake.

Loading content...

Implementations on Foreign Types

impl<T: Wake> Wake for Box<T>[src]

impl<T: WakeRef + ?Sized> Wake for Arc<T>[src]

impl<T: WakeRef + ?Sized> Wake for Weak<T>[src]

impl<T: WakeRef + ?Sized> Wake for Rc<T>[src]

impl<T: WakeRef + ?Sized> Wake for Weak<T>[src]

impl<T: Wake> Wake for Option<T>[src]

impl Wake for Waker[src]

Loading content...

Implementors

impl<'_, T: WakeRef> Wake for &'_ T[src]

Loading content...