pub struct MemoryStorageClient { /* private fields */ }Expand description
An in-process storage client that shares named stores across open calls.
Implementations§
Trait Implementations§
Source§impl Default for MemoryStorageClient
impl Default for MemoryStorageClient
Source§impl StorageClient for MemoryStorageClient
impl StorageClient for MemoryStorageClient
Source§fn purge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn purge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = StorageResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Empties existing handles, then detaches all datasets, stores, and queues.
Source§fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a dataset, using the default dataset when
name is None.Source§fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a key-value store, using the default store when
name is None.Source§fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a request queue, using the default queue when
name is None.Auto Trait Implementations§
impl !Freeze for MemoryStorageClient
impl RefUnwindSafe for MemoryStorageClient
impl Send for MemoryStorageClient
impl Sync for MemoryStorageClient
impl Unpin for MemoryStorageClient
impl UnsafeUnpin for MemoryStorageClient
impl UnwindSafe for MemoryStorageClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more