pub(crate) trait WeakWake: Send + Sync {
    // Required method
    fn wake_by_ref(weak_self: &Weak<Self>);

    // Provided method
    fn wake(weak_self: Weak<Self>) { ... }
}
Expand description

Like futures::task::ArcWake but uses Weak<T> instead of Arc<T>.

Required Methods§

source

fn wake_by_ref(weak_self: &Weak<Self>)

Provided Methods§

source

fn wake(weak_self: Weak<Self>)

Object Safety§

This trait is not object safe.

Implementors§