pub struct SpotwareGrpcAdapterServer { /* private fields */ }Implementations§
Source§impl SpotwareGrpcAdapterServer
impl SpotwareGrpcAdapterServer
pub async fn connect( config: SpotwareAdapterConfig, ) -> Result<Self, OpenApiError>
pub fn into_tonic_service(self) -> OpenApiServiceServer<Self>
Trait Implementations§
Source§impl OpenApiService for SpotwareGrpcAdapterServer
impl OpenApiService for SpotwareGrpcAdapterServer
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 SpotwareGrpcAdapterServer
impl !RefUnwindSafe for SpotwareGrpcAdapterServer
impl !UnwindSafe for SpotwareGrpcAdapterServer
impl Send for SpotwareGrpcAdapterServer
impl Sync for SpotwareGrpcAdapterServer
impl Unpin for SpotwareGrpcAdapterServer
impl UnsafeUnpin for SpotwareGrpcAdapterServer
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> 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