Trait seec_channel::ReceiverT

source ·
pub trait ReceiverT<T> {
    type Error;

    // Required method
    fn recv<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<T, Codec> ReceiverT<T> for Receiver<T, Codec>
where T: RemoteSend, Codec: Codec,

§

type Error = RecvError

source§

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl<T, Codec, const BUFFER: usize> ReceiverT<T> for Receiver<T, Codec, BUFFER>
where T: RemoteSend, Codec: Codec,

§

type Error = RecvError

source§

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<T: RemoteSend> ReceiverT<T> for MultiReceiver<T>

§

type Error = Error