Trait jsonrpsee_core::client::TransportReceiverT

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

    // Required method
    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;
}
Available on crate feature client only.
Expand description

Transport interface to receive data asynchronous.

Required Associated Types§

source

type Error: Error + Send + Sync

Error that may occur during receiving a message.

Required Methods§

source

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,

Receive.

Implementors§