pub struct OpenApiGrpcServer { /* private fields */ }Implementations§
Source§impl OpenApiGrpcServer
impl OpenApiGrpcServer
pub fn new(service: OpenApiService) -> Self
pub fn into_tonic_service(self) -> OpenApiServiceServer<Self>
Trait Implementations§
Source§impl Clone for OpenApiGrpcServer
impl Clone for OpenApiGrpcServer
Source§fn clone(&self) -> OpenApiGrpcServer
fn clone(&self) -> OpenApiGrpcServer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenApiGrpcServer
impl Debug for OpenApiGrpcServer
Source§impl OpenApiService for OpenApiGrpcServer
impl OpenApiService for OpenApiGrpcServer
Source§type StreamCandlesStream = Pin<Box<dyn Stream<Item = Result<StreamCandlesResponse, Status>> + Send>>
type StreamCandlesStream = Pin<Box<dyn Stream<Item = Result<StreamCandlesResponse, Status>> + Send>>
Server streaming response type for the StreamCandles method.
fn register_user<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterUserRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterUserResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn login<'life0, 'async_trait>(
&'life0 self,
request: Request<LoginRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LoginResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn logout<'life0, 'async_trait>(
&'life0 self,
request: Request<LogoutRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LogoutResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_balance<'life0, 'async_trait>(
&'life0 self,
request: Request<FetchBalanceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FetchBalanceResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_open_positions<'life0, 'async_trait>(
&'life0 self,
request: Request<FetchOpenPositionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FetchOpenPositionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn place_market_order<'life0, 'async_trait>(
&'life0 self,
request: Request<PlaceMarketOrderRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PlaceMarketOrderResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn quote_volume<'life0, 'async_trait>(
&'life0 self,
request: Request<QuoteVolumeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QuoteVolumeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_candles<'life0, 'async_trait>(
&'life0 self,
request: Request<GetCandlesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetCandlesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_candles<'life0, 'async_trait>(
&'life0 self,
request: Request<StreamCandlesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamCandlesStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_server_time<'life0, 'async_trait>(
&'life0 self,
request: Request<GetServerTimeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetServerTimeResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for OpenApiGrpcServer
impl !RefUnwindSafe for OpenApiGrpcServer
impl Send for OpenApiGrpcServer
impl Sync for OpenApiGrpcServer
impl Unpin for OpenApiGrpcServer
impl UnsafeUnpin for OpenApiGrpcServer
impl !UnwindSafe for OpenApiGrpcServer
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request