Trait pallet_handles_rpc::HandlesApiClient
source · pub trait HandlesApiClient<BlockHash>: ClientT{
// Provided methods
fn get_handle_for_msa<'life0, 'async_trait>(
&'life0 self,
msa_id: MessageSourceId
) -> Pin<Box<dyn Future<Output = Result<Option<HandleResponse>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_next_suffixes<'life0, 'async_trait>(
&'life0 self,
base_handle: String,
count: Option<u16>
) -> Pin<Box<dyn Future<Output = Result<PresumptiveSuffixesResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_msa_for_handle<'life0, 'async_trait>(
&'life0 self,
display_handle: String
) -> Pin<Box<dyn Future<Output = Result<Option<MessageSourceId>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn validate_handle<'life0, 'async_trait>(
&'life0 self,
base_handle: String
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the HandlesApi
RPC API.
Provided Methods§
sourcefn get_handle_for_msa<'life0, 'async_trait>(
&'life0 self,
msa_id: MessageSourceId
) -> Pin<Box<dyn Future<Output = Result<Option<HandleResponse>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_handle_for_msa<'life0, 'async_trait>(
&'life0 self,
msa_id: MessageSourceId
) -> Pin<Box<dyn Future<Output = Result<Option<HandleResponse>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
retrieve HandleResponse
for a given MessageSourceId
sourcefn get_next_suffixes<'life0, 'async_trait>(
&'life0 self,
base_handle: String,
count: Option<u16>
) -> Pin<Box<dyn Future<Output = Result<PresumptiveSuffixesResponse, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_next_suffixes<'life0, 'async_trait>(
&'life0 self,
base_handle: String,
count: Option<u16>
) -> Pin<Box<dyn Future<Output = Result<PresumptiveSuffixesResponse, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
retrieve next n
suffixes for a given handle
Object Safety§
This trait is not object safe.