pub enum StorageMode {
Disk {
path: PathBuf,
config: Option<LsmKVConfig>,
},
Memory {
max_size: Option<usize>,
},
}Expand description
Storage mode selection for the KV store.
Variants§
Disk
Disk-backed storage using LSM-Tree (file-mode).
Fields
§
config: Option<LsmKVConfig>LSM-Tree 設定(None = デフォルト)。
Memory
Pure in-memory storage with optional memory cap.
Auto Trait Implementations§
impl Freeze for StorageMode
impl RefUnwindSafe for StorageMode
impl Send for StorageMode
impl Sync for StorageMode
impl Unpin for StorageMode
impl UnsafeUnpin for StorageMode
impl UnwindSafe for StorageMode
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