pub struct ReplicationConfig {
pub raft: RaftConfig,
pub cluster: ClusterConfig,
pub tick_interval: Duration,
pub apply_batch_size: usize,
}Expand description
Configuration for the replication engine.
Fields§
§raft: RaftConfig§cluster: ClusterConfig§tick_interval: Duration§apply_batch_size: usizeImplementations§
Source§impl ReplicationConfig
impl ReplicationConfig
pub fn new() -> Self
pub fn with_raft(self, raft: RaftConfig) -> Self
pub fn with_cluster(self, cluster: ClusterConfig) -> Self
Trait Implementations§
Source§impl Clone for ReplicationConfig
impl Clone for ReplicationConfig
Source§fn clone(&self) -> ReplicationConfig
fn clone(&self) -> ReplicationConfig
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 moreSource§impl Debug for ReplicationConfig
impl Debug for ReplicationConfig
Auto Trait Implementations§
impl Freeze for ReplicationConfig
impl RefUnwindSafe for ReplicationConfig
impl Send for ReplicationConfig
impl Sync for ReplicationConfig
impl Unpin for ReplicationConfig
impl UnsafeUnpin for ReplicationConfig
impl UnwindSafe for ReplicationConfig
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