pub trait SessionExtManual:
IsA<Session>
+ Sealed
+ 'static {
// Provided methods
fn websocket_connect_async<P: FnOnce(Result<WebsocketConnection, Error>) + 'static>(
&self,
msg: &Message,
origin: Option<&str>,
protocols: &[&str],
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn websocket_connect_async_future(
&self,
msg: &Message,
origin: Option<&str>,
protocols: &[&str],
io_priority: Priority,
) -> Pin<Box_<dyn Future<Output = Result<WebsocketConnection, Error>> + 'static>> { ... }
}
Provided Methods§
fn websocket_connect_async<P: FnOnce(Result<WebsocketConnection, Error>) + 'static>( &self, msg: &Message, origin: Option<&str>, protocols: &[&str], io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
fn websocket_connect_async_future( &self, msg: &Message, origin: Option<&str>, protocols: &[&str], io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<WebsocketConnection, Error>> + 'static>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.