pub struct ShardPersistenceConfig {
pub data_dir: PathBuf,
pub append_only: bool,
pub fsync_policy: FsyncPolicy,
}Expand description
Optional persistence configuration for a shard.
Fields§
§data_dir: PathBufDirectory where AOF and snapshot files live.
append_only: boolWhether to write an AOF log of mutations.
fsync_policy: FsyncPolicyWhen to fsync the AOF file.
Trait Implementations§
Source§impl Clone for ShardPersistenceConfig
impl Clone for ShardPersistenceConfig
Source§fn clone(&self) -> ShardPersistenceConfig
fn clone(&self) -> ShardPersistenceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShardPersistenceConfig
impl RefUnwindSafe for ShardPersistenceConfig
impl Send for ShardPersistenceConfig
impl Sync for ShardPersistenceConfig
impl Unpin for ShardPersistenceConfig
impl UnwindSafe for ShardPersistenceConfig
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