Struct noosphere_storage::NativeStorage
source · pub struct NativeStorage { /* private fields */ }Implementations§
source§impl NativeStorage
impl NativeStorage
pub fn new(init: NativeStorageInit) -> Result<Self>
Trait Implementations§
source§impl Clone for NativeStorage
impl Clone for NativeStorage
source§fn clone(&self) -> NativeStorage
fn clone(&self) -> NativeStorage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Storage for NativeStorage
impl Storage for NativeStorage
type BlockStore = NativeStore
type KeyValueStore = NativeStore
source§fn get_block_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Self::BlockStore>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block_store<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Self::BlockStore>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Get a BlockStore where all values stored in it are scoped to the given
name
source§fn get_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Self::KeyValueStore>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_key_value_store<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Self::KeyValueStore>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Get a KeyValueStore where all values stored in it are scoped to the
given name