pub struct MasterComponentConfig {
pub drain_timeout_ms: u64,
pub delegate_retry_max_attempts: Option<u32>,
}Expand description
Configuration for the master/leader-election component.
Controls drain timeout for graceful delegate shutdown and the maximum number of delegate start retry attempts while leading.
Fields§
§drain_timeout_ms: u64Timeout in milliseconds for draining a delegate consumer on leadership loss.
delegate_retry_max_attempts: Option<u32>Maximum number of times to retry starting the delegate consumer after a failure.
None means unlimited retries.
Implementations§
Trait Implementations§
Source§impl Clone for MasterComponentConfig
impl Clone for MasterComponentConfig
Source§fn clone(&self) -> MasterComponentConfig
fn clone(&self) -> MasterComponentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MasterComponentConfig
impl Debug for MasterComponentConfig
Auto Trait Implementations§
impl Freeze for MasterComponentConfig
impl RefUnwindSafe for MasterComponentConfig
impl Send for MasterComponentConfig
impl Sync for MasterComponentConfig
impl Unpin for MasterComponentConfig
impl UnsafeUnpin for MasterComponentConfig
impl UnwindSafe for MasterComponentConfig
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