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§
Sourcetype Service: SendExcService<SubscribeTickers>
type Service: SendExcService<SubscribeTickers>
Service to subscribe tickers.
Required Methods§
Sourcefn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), ExchangeError>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), ExchangeError>>
Returns Ready when the factory is able to create more service.
Sourcefn make_tickers(&mut self, options: MakeTickersOptions) -> Self::Future
fn make_tickers(&mut self, options: MakeTickersOptions) -> Self::Future
Create a new service to subscribe tickers.
Provided Methods§
Sourcefn as_make_tickers_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
fn as_make_tickers_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
Convert to a Service.