Trait tokio::util::wake::Wake

source ·
pub(crate) trait Wake:
    Send
    + Sync
    + Sized
    + 'static {
    // Required methods
    fn wake(arc_self: Arc<Self>);
    fn wake_by_ref(arc_self: &Arc<Self>);
}
Expand description

Simplified waking interface based on Arcs.

Required Methods§

source

fn wake(arc_self: Arc<Self>)

Wake by value.

source

fn wake_by_ref(arc_self: &Arc<Self>)

Wake by reference.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Wake for Handle

source§

impl<T: 'static> Wake for ListEntry<T>