pub struct WsControl { /* private fields */ }Expand description
Sends WebSocket control frames into a running bridge_with. Cheaply
cloneable; call from any task. Frames are queued and flushed by the bridge on
its next turn; a send fails only once the bridge has ended.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsControl
impl RefUnwindSafe for WsControl
impl Send for WsControl
impl Sync for WsControl
impl Unpin for WsControl
impl UnsafeUnpin for WsControl
impl UnwindSafe for WsControl
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