pub struct ServiceFactory { /* private fields */ }Expand description
Factory that create gRPC client services from .proto specs of invest API
Implementations§
Source§impl ServiceFactory
impl ServiceFactory
Sourcepub fn builder() -> ServiceFactoryBuilder
pub fn builder() -> ServiceFactoryBuilder
Create ServiceFactoryBuilder
Sourcepub fn users_service(
&self,
) -> UsersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn users_service( &self, ) -> UsersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn users_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> UsersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn users_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> UsersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn orders_service(
&self,
) -> OrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn orders_service( &self, ) -> OrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn orders_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> OrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn orders_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> OrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn orders_stream_service(
&self,
) -> OrdersStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn orders_stream_service( &self, ) -> OrdersStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn orders_stream_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> OrdersStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn orders_stream_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> OrdersStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn stop_orders_service(
&self,
) -> StopOrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn stop_orders_service( &self, ) -> StopOrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn stop_orders_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> StopOrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn stop_orders_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> StopOrdersServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn operations_service(
&self,
) -> OperationsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn operations_service( &self, ) -> OperationsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn operations_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> OperationsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn operations_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> OperationsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn operations_stream_service(
&self,
) -> OperationsStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn operations_stream_service( &self, ) -> OperationsStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn operations_stream_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> OperationsStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn operations_stream_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> OperationsStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn instruments_service(
&self,
) -> InstrumentsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn instruments_service( &self, ) -> InstrumentsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn instruments_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> InstrumentsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn instruments_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> InstrumentsServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn marketdata_service(
&self,
) -> MarketDataServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn marketdata_service( &self, ) -> MarketDataServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn marketdata_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> MarketDataServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn marketdata_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> MarketDataServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn marketdata_stream_service(
&self,
) -> MarketDataStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn marketdata_stream_service( &self, ) -> MarketDataStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn marketdata_stream_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> MarketDataStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn marketdata_stream_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> MarketDataStreamServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn sandbox_service(
&self,
) -> SandboxServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn sandbox_service( &self, ) -> SandboxServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn sandbox_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> SandboxServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn sandbox_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> SandboxServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Sourcepub fn signal_service(
&self,
) -> SignalServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn signal_service( &self, ) -> SignalServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API
Sourcepub fn signal_service_with_interceptor(
&self,
interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>,
) -> SignalServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
pub fn signal_service_with_interceptor( &self, interceptor: impl FnMut(Request<()>) -> Result<Request<()>, Status>, ) -> SignalServiceClient<InterceptedService<Channel, impl FnMut(Request<()>) -> Result<Request<()>, Status>>>
Create generated .proto services of invest API with interceptor
Trait Implementations§
Source§impl Clone for ServiceFactory
impl Clone for ServiceFactory
Source§fn clone(&self) -> ServiceFactory
fn clone(&self) -> ServiceFactory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceFactory
impl !RefUnwindSafe for ServiceFactory
impl Send for ServiceFactory
impl Sync for ServiceFactory
impl Unpin for ServiceFactory
impl !UnwindSafe for ServiceFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request