pub struct WsLink<S> { /* private fields */ }Expand description
A Link over a WebSocket connection.
Wraps a WebSocketStream and sends each vox payload as a single
binary WebSocket frame. The WebSocket protocol preserves message
boundaries natively, so no length-prefix framing is needed.
Implementations§
Source§impl<S> WsLink<S>
impl<S> WsLink<S>
Sourcepub fn new(stream: WebSocketStream<S>) -> Self
pub fn new(stream: WebSocketStream<S>) -> Self
Construct from an already-upgraded WebSocketStream.
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for WsLink<S>
impl<S> !RefUnwindSafe for WsLink<S>
impl<S> Send for WsLink<S>where
S: Send,
impl<S> Sync for WsLink<S>where
S: Sync,
impl<S> Unpin for WsLink<S>where
S: Unpin,
impl<S> UnsafeUnpin for WsLink<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for WsLink<S>
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