[−][src]Trait muta_protocol::traits::StorageAdapter
Required methods
fn insert<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
key: <S as StorageSchema>::Key,
val: <S as StorageSchema>::Value
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
key: <S as StorageSchema>::Key,
val: <S as StorageSchema>::Value
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn get<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<Option<<S as StorageSchema>::Value>>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<Option<<S as StorageSchema>::Value>>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn remove<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn contains<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<bool>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
key: <S as StorageSchema>::Key
) -> Pin<Box<dyn Future<Output = ProtocolResult<bool>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn batch_modify<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
keys: Vec<<S as StorageSchema>::Key>,
vals: Vec<StorageBatchModify<S>>
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
keys: Vec<<S as StorageSchema>::Key>,
vals: Vec<StorageBatchModify<S>>
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Provided methods
fn get_batch<'life0, 'async_trait, S: StorageSchema>(
&'life0 self,
keys: Vec<<S as StorageSchema>::Key>
) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<Option<<S as StorageSchema>::Value>>>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
keys: Vec<<S as StorageSchema>::Key>
) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<Option<<S as StorageSchema>::Value>>>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,