pub struct ClientWsTransport { /* private fields */ }
Implementations§
Source§impl ClientWsTransport
impl ClientWsTransport
pub fn builder(url: String) -> ClientWsTransportBuilder
Trait Implementations§
Source§impl Clone for ClientWsTransport
impl Clone for ClientWsTransport
Source§fn clone(&self) -> ClientWsTransport
fn clone(&self) -> ClientWsTransport
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Transport for ClientWsTransport
impl Transport for ClientWsTransport
Source§fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive a message from the transport
this is blocking call
Source§fn send(
&self,
message: &Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
fn send( &self, message: &Message, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
Send a message to the transport
Auto Trait Implementations§
impl Freeze for ClientWsTransport
impl !RefUnwindSafe for ClientWsTransport
impl Send for ClientWsTransport
impl Sync for ClientWsTransport
impl Unpin for ClientWsTransport
impl !UnwindSafe for ClientWsTransport
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