pub struct StorageFactory;
Expand description
Storage factory for creating different backends
Implementations§
Source§impl StorageFactory
impl StorageFactory
Sourcepub async fn create_storage(
mode: PersistenceMode,
config: StorageConfig,
) -> Result<Box<dyn Storage>, MapletError>
pub async fn create_storage( mode: PersistenceMode, config: StorageConfig, ) -> Result<Box<dyn Storage>, MapletError>
Create a storage backend based on persistence mode
Auto Trait Implementations§
impl Freeze for StorageFactory
impl RefUnwindSafe for StorageFactory
impl Send for StorageFactory
impl Sync for StorageFactory
impl Unpin for StorageFactory
impl UnwindSafe for StorageFactory
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