pub trait StatefulStorageApiClient<BlockHash>: ClientT{
// 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§
Sourcefn 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_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
Sourcefn 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,
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.