sui_rpc_api::proto::sui::rpc::v2::state_service_server

Trait StateService

pub trait StateService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_dynamic_fields<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListDynamicFieldsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListDynamicFieldsResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn list_owned_objects<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListOwnedObjectsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListOwnedObjectsResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_coin_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCoinInfoRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetCoinInfoResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_balance<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBalanceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetBalanceResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn list_balances<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListBalancesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListBalancesResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with StateServiceServer.

Required Methods§

fn list_dynamic_fields<'life0, 'async_trait>( &'life0 self, request: Request<ListDynamicFieldsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListDynamicFieldsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn list_owned_objects<'life0, 'async_trait>( &'life0 self, request: Request<ListOwnedObjectsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListOwnedObjectsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn get_coin_info<'life0, 'async_trait>( &'life0 self, request: Request<GetCoinInfoRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetCoinInfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn get_balance<'life0, 'async_trait>( &'life0 self, request: Request<GetBalanceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetBalanceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

fn list_balances<'life0, 'async_trait>( &'life0 self, request: Request<ListBalancesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListBalancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§