Trait soup::prelude::SessionExtManual

source ·
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§

source

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, )

source

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>>

Object Safety§

This trait is not object safe.

Implementors§