Struct jsonrpsee_client_transport::ws::Sender
source · pub struct Sender { /* private fields */ }
Available on crate feature
ws
only.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.
Auto Trait Implementations§
impl !RefUnwindSafe for Sender
impl Send for Sender
impl Sync for Sender
impl Unpin for Sender
impl !UnwindSafe for Sender
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more