Trait AsyncReceiver

Source
pub trait AsyncReceiver<T> {
    // Required method
    fn receive(&self) -> impl Future<Output = T>;
}

Required Methods§

Source

fn receive(&self) -> impl Future<Output = T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<M: RawMutex, T, const N: usize> AsyncReceiver<T> for Channel<M, T, N>

Source§

fn receive(&self) -> impl Future<Output = T>

Implementors§