pub trait AssetsService:
Send
+ Sync
+ 'static {
// Required methods
fn exchanges<'life0, 'async_trait>(
&'life0 self,
request: Request<ExchangesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExchangesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn assets<'life0, 'async_trait>(
&'life0 self,
request: Request<AssetsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AssetsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn all_assets<'life0, 'async_trait>(
&'life0 self,
request: Request<AllAssetsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AllAssetsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_asset<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAssetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAssetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_asset_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAssetParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAssetParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn options_chain<'life0, 'async_trait>(
&'life0 self,
request: Request<OptionsChainRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OptionsChainResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn schedule<'life0, 'async_trait>(
&'life0 self,
request: Request<ScheduleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScheduleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clock<'life0, 'async_trait>(
&'life0 self,
request: Request<ClockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClockResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_constituents<'life0, 'async_trait>(
&'life0 self,
request: Request<GetConstituentsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetConstituentsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with AssetsServiceServer.
Required Methods§
fn exchanges<'life0, 'async_trait>(
&'life0 self,
request: Request<ExchangesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ExchangesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn assets<'life0, 'async_trait>(
&'life0 self,
request: Request<AssetsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AssetsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn all_assets<'life0, 'async_trait>(
&'life0 self,
request: Request<AllAssetsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AllAssetsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_asset<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAssetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAssetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_asset_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAssetParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAssetParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn options_chain<'life0, 'async_trait>(
&'life0 self,
request: Request<OptionsChainRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OptionsChainResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn schedule<'life0, 'async_trait>(
&'life0 self,
request: Request<ScheduleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScheduleResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clock<'life0, 'async_trait>(
&'life0 self,
request: Request<ClockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClockResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_constituents<'life0, 'async_trait>(
&'life0 self,
request: Request<GetConstituentsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetConstituentsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".