Enum taskchampion::storage::StorageConfig[][src]

pub enum StorageConfig {
    OnDisk {
        taskdb_dir: PathBuf,
    },
    InMemory,
}
Expand description

The configuration required for a replica’s storage.

Variants

OnDisk

Store the data on disk. This is the common choice.

Fields of OnDisk

taskdb_dir: PathBuf

Path containing the task DB.

InMemory

Store the data in memory. This is only useful for testing.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.