[][src]Trait cxmr_rpc::Service

pub trait Service: Send + Sync {
    type Error;
    fn orderbooks<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(Market, OrderBook)>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Service trait.

Associated Types

type Error

Service error type.

Loading content...

Required methods

fn orderbooks<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<(Market, OrderBook)>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Returns all orderbooks in the service.

Loading content...

Implementors

Loading content...