pub trait HandlesApiClient<BlockHash>: ClientT
where BlockHash: Send + Sync + 'static,
{ // 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§

source

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

source

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

source

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,

retrieve MessageSourceId for a given handle

source

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,

validate a handle

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash> HandlesApiClient<BlockHash> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static,