pub trait RefWake: Send + Sync {
    fn wake_by_ref(self: RefBorrow<'_, Self>);

    fn wake(self: Ref<Self>) { ... }
}
Expand description

A waker that is wrapped in Ref for its reference counting.

Types that implement this trait can get a Waker by calling ref_waker.

Required Methods

Wakes a task up.

Provided Methods

Wakes a task up and consumes a reference.

Implementors