pub struct WsConnection<S: WsCodec, R: WsCodec> { /* private fields */ }Expand description
A typed WebSocket connection parameterized by send and receive types.
On the server side: Send = E::ServerMsg, Recv = E::ClientMsg.
On the client side: Send = E::ClientMsg, Recv = E::ServerMsg.
Implementations§
Auto Trait Implementations§
impl<S, R> Freeze for WsConnection<S, R>
impl<S, R> !RefUnwindSafe for WsConnection<S, R>
impl<S, R> Send for WsConnection<S, R>
impl<S, R> !Sync for WsConnection<S, R>
impl<S, R> Unpin for WsConnection<S, R>
impl<S, R> UnsafeUnpin for WsConnection<S, R>
impl<S, R> !UnwindSafe for WsConnection<S, R>
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