MakeTickers

Trait MakeTickers 

Source
pub trait MakeTickers {
    type Service: SendExcService<SubscribeTickers>;
    type Future: Future<Output = Result<Self::Service, ExchangeError>>;

    // Required methods
    fn poll_ready(
        &mut self,
        cx: &mut Context<'_>,
    ) -> Poll<Result<(), ExchangeError>>;
    fn make_tickers(&mut self, options: MakeTickersOptions) -> Self::Future;

    // Provided method
    fn as_make_tickers_service(&mut self) -> AsService<'_, Self>
       where Self: Sized { ... }
}
Expand description

Make a service to subscribe tickers.

Required Associated Types§

Source

type Service: SendExcService<SubscribeTickers>

Service to subscribe tickers.

Source

type Future: Future<Output = Result<Self::Service, ExchangeError>>

The future of the service.

Required Methods§

Source

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), ExchangeError>>

Returns Ready when the factory is able to create more service.

Source

fn make_tickers(&mut self, options: MakeTickersOptions) -> Self::Future

Create a new service to subscribe tickers.

Provided Methods§

Source

fn as_make_tickers_service(&mut self) -> AsService<'_, Self>
where Self: Sized,

Convert to a Service.

Implementors§