pub struct WebSocket {
pub incoming: WsReceiver,
pub outgoing: WsSender,
}Expand description
An established connection. Sending and receiving are independent; there is
no request/response pairing. The HTTP handshake is represented separately
by super::WireRequest and super::WireResponse.
Fields§
§incoming: WsReceiver§outgoing: WsSenderTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebSocket
impl !Sync for WebSocket
impl !UnwindSafe for WebSocket
impl Freeze for WebSocket
impl Send for WebSocket
impl Unpin for WebSocket
impl UnsafeUnpin for WebSocket
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