pub struct WebSocketConnection { /* private fields */ }Expand description
WebSocket connection with bidirectional streams
Implementations§
Source§impl WebSocketConnection
impl WebSocketConnection
Sourcepub fn sender_mut(&mut self) -> &mut WsSink
pub fn sender_mut(&mut self) -> &mut WsSink
Get mutable access to the sender
Sourcepub fn receiver_mut(&mut self) -> &mut WsStream
pub fn receiver_mut(&mut self) -> &mut WsStream
Get mutable access to the receiver
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebSocketConnection
impl !RefUnwindSafe for WebSocketConnection
impl Send for WebSocketConnection
impl !Sync for WebSocketConnection
impl Unpin for WebSocketConnection
impl !UnwindSafe for WebSocketConnection
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more