pub struct TungsteniteWebSocketFactory { /* private fields */ }Expand description
Creates tokio-tungstenite backed websocket sockets.
Implementations§
Trait Implementations§
Source§impl Clone for TungsteniteWebSocketFactory
impl Clone for TungsteniteWebSocketFactory
Source§impl Debug for TungsteniteWebSocketFactory
impl Debug for TungsteniteWebSocketFactory
Source§impl WebSocketFactory for TungsteniteWebSocketFactory
impl WebSocketFactory for TungsteniteWebSocketFactory
Source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn WebSocketSocket>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn WebSocketSocket>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Connects to
uri, giving up after timeout.Auto Trait Implementations§
impl Freeze for TungsteniteWebSocketFactory
impl RefUnwindSafe for TungsteniteWebSocketFactory
impl Send for TungsteniteWebSocketFactory
impl Sync for TungsteniteWebSocketFactory
impl Unpin for TungsteniteWebSocketFactory
impl UnsafeUnpin for TungsteniteWebSocketFactory
impl UnwindSafe for TungsteniteWebSocketFactory
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