pub struct TungsteniteConn { /* private fields */ }Expand description
WebSocket connection backed by tokio-tungstenite.
Trait Implementations§
Source§impl WsConn for TungsteniteConn
impl WsConn for TungsteniteConn
Source§fn send_text(
&mut self,
text: String,
) -> impl Future<Output = Result<(), WsError>> + Send
fn send_text( &mut self, text: String, ) -> impl Future<Output = Result<(), WsError>> + Send
Send a text frame.
Source§fn send_pong(
&mut self,
payload: Bytes,
) -> impl Future<Output = Result<(), WsError>> + Send
fn send_pong( &mut self, payload: Bytes, ) -> impl Future<Output = Result<(), WsError>> + Send
Send a pong control frame with the supplied ping payload.
Auto Trait Implementations§
impl !Freeze for TungsteniteConn
impl !RefUnwindSafe for TungsteniteConn
impl !UnwindSafe for TungsteniteConn
impl Send for TungsteniteConn
impl Sync for TungsteniteConn
impl Unpin for TungsteniteConn
impl UnsafeUnpin for TungsteniteConn
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