pub struct WebSocketClient { /* private fields */ }Expand description
WebSocket client transport
Implementations§
Source§impl WebSocketClient
impl WebSocketClient
Sourcepub async fn connect(
&self,
) -> Result<WebSocketTransport<impl AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static>, TransportError>
pub async fn connect( &self, ) -> Result<WebSocketTransport<impl AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static>, TransportError>
Connect to the WebSocket server
Auto Trait Implementations§
impl Freeze for WebSocketClient
impl RefUnwindSafe for WebSocketClient
impl Send for WebSocketClient
impl Sync for WebSocketClient
impl Unpin for WebSocketClient
impl UnsafeUnpin for WebSocketClient
impl UnwindSafe for WebSocketClient
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