pub struct WebSocketTransport { /* private fields */ }Expand description
Production transport — wraps tokio_tungstenite and pumps frames in
a background task whose output flows through an mpsc receiver.
Implementations§
Trait Implementations§
Source§impl RealtimeTransport for WebSocketTransport
impl RealtimeTransport for WebSocketTransport
fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
payload: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for WebSocketTransport
impl !UnwindSafe for WebSocketTransport
impl Freeze for WebSocketTransport
impl Send for WebSocketTransport
impl Sync for WebSocketTransport
impl Unpin for WebSocketTransport
impl UnsafeUnpin for WebSocketTransport
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