IGatewayConnection

Trait IGatewayConnection 

Source
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

Required Methods§

Source

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

Source

fn into_dyn(self) -> DynGatewayConnection
where Self: Sized,

Implementations on Foreign Types§

Source§

impl IGatewayConnection for Connection

Source§

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,

Implementors§