Trait pallet_xdns_rpc::XdnsApiClient
source · 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§
sourcefn 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_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