pub trait IGatewayConnection:
IConnection
+ Debug
+ Send
+ Sync
+ 'static {
// Required method
fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
password: Option<String>,
method: Method,
route: &'life1 str,
payload: Option<Value>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
fn into_dyn(self) -> DynGatewayConnection
where Self: Sized { ... }
}Expand description
A connection from a client to a gateway