[][src]Struct bus_queue::Waker

pub struct Waker<T> {
    pub sleepers: Vec<Arc<T>>,
    // some fields omitted
}

Helper struct used by sync and async implementations to wake Tasks / Threads

Fields

sleepers: Vec<Arc<T>>

Vector of Tasks / Threads to be woken up.

Methods

impl<T> Waker<T>[src]

pub fn register_receivers(&mut self)[src]

Register all the Tasks / Threads sent for registration.

Trait Implementations

impl<T: Debug> Debug for Waker<T>[src]

Auto Trait Implementations

impl<T> Sync for Waker<T> where
    T: Send + Sync

impl<T> Send for Waker<T> where
    T: Send + Sync

impl<T> Unpin for Waker<T>

impl<T> RefUnwindSafe for Waker<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Waker<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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