pub struct WebSocket<IO> { /* private fields */ }Implementations§
Source§impl<R: Unpin + AsyncRead> WebSocket<R>
impl<R: Unpin + AsyncRead> WebSocket<R>
pub async fn recv<'a>( &mut self, buf: &'a mut [u8], ) -> WSocketResult<Message<'a>>
Source§impl<W: Unpin + AsyncWrite> WebSocket<W>
impl<W: Unpin + AsyncWrite> WebSocket<W>
pub async fn send(&mut self, message: Message<'_>) -> WSocketResult<()>
pub async fn close(&mut self, close: Close) -> WSocketResult<()>
Auto Trait Implementations§
impl<IO> Freeze for WebSocket<IO>where
IO: Freeze,
impl<IO> RefUnwindSafe for WebSocket<IO>where
IO: RefUnwindSafe,
impl<IO> Send for WebSocket<IO>where
IO: Send,
impl<IO> Sync for WebSocket<IO>where
IO: Sync,
impl<IO> Unpin for WebSocket<IO>where
IO: Unpin,
impl<IO> UnsafeUnpin for WebSocket<IO>where
IO: UnsafeUnpin,
impl<IO> UnwindSafe for WebSocket<IO>where
IO: UnwindSafe,
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