pub trait SessionExt: Send {
type ID: Send + Sync + Clone + Debug + Display;
type Args: Debug + Send;
type Params: Debug + Send;
fn id(&self) -> &Self::ID;
fn text<'life0, 'async_trait>(
&'life0 mut self,
text: String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn binary<'life0, 'async_trait>(
&'life0 mut self,
bytes: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn call<'life0, 'async_trait>(
&'life0 mut self,
params: Self::Params
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Arguments passed for creating a new session on server.