Trait cros_async::waker::WeakWake
source · 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§
fn wake_by_ref(weak_self: &Weak<Self>)
Provided Methods§
Object Safety§
This trait is not object safe.