Trait aori_rs::client::AoriBackendRpcClient

source ·
pub trait AoriBackendRpcClient: ClientT {
    // Provided methods
    fn ping<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriPingParams
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn request_quote<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriRequestQuoteParams
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn cancel_order<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriCancelOrderParams
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn cancel_all_orders<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriCancelAllOrdersParams
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn make_order<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriMakeOrderParams
    ) -> Pin<Box<dyn Future<Output = Result<OrderView, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn take_order<'life0, 'async_trait>(
        &'life0 self,
        parameters: AoriTakeOrderParams
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn view_orderbook<'life0, 'async_trait>(
        &'life0 self,
        parameters: ViewOrderbookQuery
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OrderView>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the AoriBackendRpc RPC API.

Provided Methods§

source

fn ping<'life0, 'async_trait>( &'life0 self, parameters: AoriPingParams ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn request_quote<'life0, 'async_trait>( &'life0 self, parameters: AoriRequestQuoteParams ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn cancel_order<'life0, 'async_trait>( &'life0 self, parameters: AoriCancelOrderParams ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn cancel_all_orders<'life0, 'async_trait>( &'life0 self, parameters: AoriCancelAllOrdersParams ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn make_order<'life0, 'async_trait>( &'life0 self, parameters: AoriMakeOrderParams ) -> Pin<Box<dyn Future<Output = Result<OrderView, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn take_order<'life0, 'async_trait>( &'life0 self, parameters: AoriTakeOrderParams ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn view_orderbook<'life0, 'async_trait>( &'life0 self, parameters: ViewOrderbookQuery ) -> Pin<Box<dyn Future<Output = Result<Vec<OrderView>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral> AoriBackendRpcClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,