pub struct ReplicationConfig {
pub default_replication_factor: u16,
pub min_isr: u16,
pub replica_lag_max_messages: u64,
pub replica_lag_max_time: Duration,
pub fetch_interval: Duration,
pub fetch_max_bytes: u32,
pub unclean_leader_election: bool,
}Expand description
Replication configuration
Fields§
§default_replication_factor: u16Default replication factor for new topics
min_isr: u16Minimum in-sync replicas required for writes
replica_lag_max_messages: u64Maximum lag (in messages) before removing from ISR
replica_lag_max_time: DurationMaximum lag (in time) before removing from ISR
fetch_interval: DurationInterval for follower fetch requests
fetch_max_bytes: u32Maximum bytes per fetch request
unclean_leader_election: boolAllow unclean leader election (may lose data)
Implementations§
Source§impl ReplicationConfig
impl ReplicationConfig
Sourcepub fn standalone() -> Self
pub fn standalone() -> Self
Standalone configuration (no replication)
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
Source§impl Default for ReplicationConfig
impl Default for ReplicationConfig
Source§impl<'de> Deserialize<'de> for ReplicationConfig
impl<'de> Deserialize<'de> for ReplicationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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