IGuardianConnection

Trait IGuardianConnection 

Source
pub trait IGuardianConnection:
    IConnection
    + Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn request<'life0, 'async_trait>(
        &'life0 self,
        method: ApiMethod,
        request: ApiRequestErased,
    ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn into_dyn(self) -> DynGuaridianConnection
       where Self: Sized { ... }
}
Expand description

A connection from api client to a federation guardian

Required Methods§

Source

fn request<'life0, 'async_trait>( &'life0 self, method: ApiMethod, request: ApiRequestErased, ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Implementations on Foreign Types§

Source§

impl IGuardianConnection for Arc<WsClient>

Source§

fn request<'life0, 'async_trait>( &'life0 self, method: ApiMethod, request: ApiRequestErased, ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl IGuardianConnection for Connection

Source§

fn request<'life0, 'async_trait>( &'life0 self, method: ApiMethod, request: ApiRequestErased, ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl IGuardianConnection for Connection

Source§

fn request<'life0, 'async_trait>( &'life0 self, method: ApiMethod, request: ApiRequestErased, ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl IGuardianConnection for WsClient

Source§

fn request<'life0, 'async_trait>( &'life0 self, method: ApiMethod, request: ApiRequestErased, ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§