pub trait TransportReceiverT: 'static {
    type Error: Error + Send + Sync;

    fn receive<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<ReceivedMessage, Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; }
Expand description

Transport interface to receive data asynchronous.

Required Associated Types§

Error that may occur during receiving a message.

Required Methods§

Receive.

Implementors§