Enum taskchampion::storage::StorageConfig
source · pub enum StorageConfig {
OnDisk {
taskdb_dir: PathBuf,
create_if_missing: bool,
},
InMemory,
}
Expand description
The configuration required for a replica’s storage.
Variants§
OnDisk
Store the data on disk. This is the common choice.
Fields
InMemory
Store the data in memory. This is only useful for testing.
Implementations§
source§impl StorageConfig
impl StorageConfig
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnwindSafe for StorageConfig
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