[][src]Struct mirai::SourceWaker

pub struct SourceWaker { /* fields omitted */ }

This is a split waker, meant for being able to wake Reads and Writes separately.

Methods

impl SourceWaker[src]

pub fn wake(&self, event: &Event)[src]

pub fn get_read_waker(&self) -> Arc<AtomicWaker>[src]

pub fn get_write_waker(&self) -> Arc<AtomicWaker>[src]

pub fn register_waker(&self, waker: &Waker)[src]

If you are writing a Future and need to wake on either Read or Write, use this function to register the Waker. Otherwise, use [get_read_waker] or [get_write_waker] respectively.

Trait Implementations

impl Clone for SourceWaker[src]

impl Default for SourceWaker[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.