Skip to main content

Receiver

Trait Receiver 

Source
pub trait Receiver: ErrorType {
    type Data<'a>
       where Self: 'a;

    // Required method
    async fn recv(&mut self) -> Result<Self::Data<'_>, Self::Error>;
}

Required Associated Types§

Source

type Data<'a> where Self: 'a

Required Methods§

Source

async fn recv(&mut self) -> Result<Self::Data<'_>, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R> Receiver for &mut R
where R: Receiver,

Source§

type Data<'a> = <R as Receiver>::Data<'a> where Self: 'a

Source§

async fn recv(&mut self) -> Result<Self::Data<'_>, Self::Error>

Implementors§