pub trait AccountsApi: Send + Sync + 'static {
    type GetBalancesStream: Stream<Item = Result<BalanceResponse, Status>> + Send + 'static;
    type GetActiveLeasesStream: Stream<Item = Result<LeaseResponse, Status>> + Send + 'static;
    type GetDataEntriesStream: Stream<Item = Result<DataEntryResponse, Status>> + Send + 'static;

    // Required methods
    fn get_balances<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BalancesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetBalancesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_script<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AccountRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ScriptData>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_active_leases<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AccountRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetActiveLeasesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_data_entries<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DataRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetDataEntriesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resolve_alias<'life0, 'async_trait>(
        &'life0 self,
        request: Request<String>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, 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 AccountsApiServer.

Required Associated Types§

source

type GetBalancesStream: Stream<Item = Result<BalanceResponse, Status>> + Send + 'static

Server streaming response type for the GetBalances method.

source

type GetActiveLeasesStream: Stream<Item = Result<LeaseResponse, Status>> + Send + 'static

Server streaming response type for the GetActiveLeases method.

source

type GetDataEntriesStream: Stream<Item = Result<DataEntryResponse, Status>> + Send + 'static

Server streaming response type for the GetDataEntries method.

Required Methods§

source

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

source

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

source

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

source

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

source

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

Implementors§