pub struct WebsocketConnection<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebsocketConnection<'_>
impl<'a> WebsocketConnection<'_>
pub async fn recv_frame_impl(&mut self) -> Result<WsFrameImpl>
pub async fn recv_frame(&mut self) -> Result<WsFrame>
pub async fn write_frame_impl(&mut self, frame: WsFrameImpl) -> Result<()>
pub async fn send_ping(&mut self) -> Result<()>
pub async fn send_binary(&mut self, data: Vec<u8>) -> Result<()>
pub async fn send_text(&mut self, data: &str) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for WebsocketConnection<'a>
impl<'a> !RefUnwindSafe for WebsocketConnection<'a>
impl<'a> Send for WebsocketConnection<'a>
impl<'a> !Sync for WebsocketConnection<'a>
impl<'a> Unpin for WebsocketConnection<'a>
impl<'a> !UnwindSafe for WebsocketConnection<'a>
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