Struct jsonrpsee_client_transport::ws::Sender
source · pub struct Sender { /* private fields */ }
Expand description
Sending end of WebSocket transport.
Trait Implementations§
source§impl TransportSenderT for Sender
impl TransportSenderT for Sender
source§fn send<'life0, 'async_trait>(
&'life0 mut self,
body: String
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
body: String
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends out a request. Returns a Future
that finishes when the request has been
successfully sent.
source§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 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,
Sends out a ping request. Returns a Future
that finishes when the request has been
successfully sent.