Trait Service

Source
pub trait Service: Send + Sync {
    type Error;

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

Service trait.

Required Associated Types§

Source

type Error

Service error type.

Required Methods§

Source

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

Returns all orderbooks in the service.

Implementors§