pub struct StorageFactory;Expand description
Factory for creating storage instances based on mode.
Implementations§
Source§impl StorageFactory
impl StorageFactory
Sourcepub fn create(mode: StorageMode) -> Result<AnyKV>
pub fn create(mode: StorageMode) -> Result<AnyKV>
Create a KV store according to the requested mode.
- Disk: LsmKV(file-mode)を使用する。
- Memory: 既存の MemoryKV を使用する。
- S3: S3KV(requires
s3feature)を使用する。
Auto Trait Implementations§
impl Freeze for StorageFactory
impl RefUnwindSafe for StorageFactory
impl Send for StorageFactory
impl Sync for StorageFactory
impl Unpin for StorageFactory
impl UnsafeUnpin 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