Trait exc_core::exchange::MakeInstruments
source · pub trait MakeInstruments {
type Service: SendExcService<SubscribeInstruments>;
type Future: Future<Output = Result<Self::Service, ExchangeError>>;
// Required methods
fn poll_ready(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), ExchangeError>>;
fn make_instruments(
&mut self,
options: MakeInstrumentsOptions
) -> Self::Future;
// Provided method
fn as_make_instruments_service(&mut self) -> AsService<'_, Self>
where Self: Sized { ... }
}Expand description
Make a service to subscribe instruments.
Required Associated Types§
sourcetype Service: SendExcService<SubscribeInstruments>
type Service: SendExcService<SubscribeInstruments>
Service to subscribe instruments.
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_instruments(&mut self, options: MakeInstrumentsOptions) -> Self::Future
fn make_instruments(&mut self, options: MakeInstrumentsOptions) -> Self::Future
Create a new service to subscribe instruments.
Provided Methods§
sourcefn as_make_instruments_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
fn as_make_instruments_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
Convert to a Service.