embedded_svc::channel::asynch

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", so this trait is not object safe.

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§

impl<D, T> Receiver for EspAsyncSubscription<D, T>
where D: EspEventDeserializer + 'static, T: EspEventLoopType + 'static,