Trait jsonrpsee_core::client::TransportSenderT
source · pub trait TransportSenderT: MaybeSend + 'static {
type Error: Error + Send + Sync;
fn send<'life0, 'async_trait>(
&'life0 mut self,
msg: String
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn send_ping<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where
Self: Send + 'async_trait,
'life0: 'async_trait,
{ ... }
}
Expand description
Transport interface to send data asynchronous.