pub struct PartitionConfig {
pub min_detection_attempts: u32,
pub initial_backoff: Duration,
pub max_backoff: Duration,
pub backoff_multiplier: f64,
pub min_higher_level_beacons: usize,
}Expand description
Configuration for partition detection
Fields§
§min_detection_attempts: u32Minimum number of detection attempts before declaring partition
initial_backoff: DurationInitial backoff duration between detection attempts
max_backoff: DurationMaximum backoff duration cap
backoff_multiplier: f64Backoff multiplier for exponential growth
min_higher_level_beacons: usizeMinimum number of higher-level beacons required to consider connected
Implementations§
Source§impl PartitionConfig
impl PartitionConfig
Sourcepub fn calculate_backoff(&self, attempt: u32) -> Duration
pub fn calculate_backoff(&self, attempt: u32) -> Duration
Calculate backoff duration for a given attempt number
Trait Implementations§
Source§impl Clone for PartitionConfig
impl Clone for PartitionConfig
Source§fn clone(&self) -> PartitionConfig
fn clone(&self) -> PartitionConfig
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 PartitionConfig
impl Debug for PartitionConfig
Auto Trait Implementations§
impl Freeze for PartitionConfig
impl RefUnwindSafe for PartitionConfig
impl Send for PartitionConfig
impl Sync for PartitionConfig
impl Unpin for PartitionConfig
impl UnsafeUnpin for PartitionConfig
impl UnwindSafe for PartitionConfig
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