pallet_stateful_storage_rpc

Trait StatefulStorageApiClient

Source
pub trait StatefulStorageApiClient<BlockHash>: ClientT
where BlockHash: Send + Sync + 'static,
{ // Provided methods fn get_paginated_storage<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PaginatedStorageResponse>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn get_itemized_storage<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<ItemizedStoragePageResponse, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the StatefulStorageApi RPC API.

Provided Methods§

Source

fn get_paginated_storage<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<Vec<PaginatedStorageResponse>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

retrieving pages of stateful storage

Source

fn get_itemized_storage<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<ItemizedStoragePageResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

retrieving itemized storage of stateful storage

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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