pub struct RabiaConfig {
pub phase_timeout: Duration,
pub sync_timeout: Duration,
pub max_batch_size: usize,
pub max_pending_batches: usize,
pub cleanup_interval: Duration,
pub max_phase_history: usize,
pub heartbeat_interval: Duration,
pub randomization_seed: Option<u64>,
pub max_retries: usize,
pub backoff_base: Duration,
pub backoff_max: Duration,
pub network_config: TcpNetworkConfig,
}Fields§
§phase_timeout: Duration§sync_timeout: Duration§max_batch_size: usize§max_pending_batches: usize§cleanup_interval: Duration§max_phase_history: usize§heartbeat_interval: Duration§randomization_seed: Option<u64>§max_retries: usize§backoff_base: Duration§backoff_max: Duration§network_config: TcpNetworkConfigImplementations§
Source§impl RabiaConfig
impl RabiaConfig
pub fn new() -> Self
pub fn with_phase_timeout(self, timeout: Duration) -> Self
pub fn with_sync_timeout(self, timeout: Duration) -> Self
pub fn with_max_batch_size(self, size: usize) -> Self
pub fn with_cleanup_interval(self, interval: Duration) -> Self
pub fn with_randomization_seed(self, seed: u64) -> Self
pub fn with_network_config(self, config: TcpNetworkConfig) -> Self
Trait Implementations§
Source§impl Clone for RabiaConfig
impl Clone for RabiaConfig
Source§fn clone(&self) -> RabiaConfig
fn clone(&self) -> RabiaConfig
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 RabiaConfig
impl Debug for RabiaConfig
Auto Trait Implementations§
impl Freeze for RabiaConfig
impl RefUnwindSafe for RabiaConfig
impl Send for RabiaConfig
impl Sync for RabiaConfig
impl Unpin for RabiaConfig
impl UnwindSafe for RabiaConfig
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