pub trait XdnsApiClient<AccountId>: ClientTwhere
    AccountId: Send + Sync + 'static + DeserializeOwned,{
    // Provided methods
    fn fetch_records<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<GatewayRecord<AccountId>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn fetch_abi<'life0, 'async_trait>(
        &'life0 self,
        chain_id: ChainId
    ) -> Pin<Box<dyn Future<Output = RpcResult<GatewayABIConfig>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn fetch_full_gateway_records<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<FullGatewayRecord<AccountId>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the XdnsApi RPC API.

Provided Methods§

source

fn fetch_records<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<GatewayRecord<AccountId>>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns all known XDNS records

source

fn fetch_abi<'life0, 'async_trait>( &'life0 self, chain_id: ChainId ) -> Pin<Box<dyn Future<Output = RpcResult<GatewayABIConfig>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn fetch_full_gateway_records<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<FullGatewayRecord<AccountId>>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TypeJsonRpseeInteral, AccountId> XdnsApiClient<AccountId> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, AccountId: Send + Sync + 'static + DeserializeOwned,