pub struct ColdPathConfig {
pub enabled: bool,
pub interval_sec: u64,
pub max_items_per_cycle: usize,
pub backoff_base_sec: u64,
pub backoff_max_sec: u64,
}Expand description
Cold path (Merkle anti-entropy) configuration.
Fields§
§enabled: boolWhether cold path repair is enabled.
interval_sec: u64How often to run Merkle comparison (in seconds).
max_items_per_cycle: usizeMaximum items to repair per cycle (prevents memory pressure). If more items are divergent, remaining items will be repaired in subsequent cycles.
backoff_base_sec: u64Base backoff time in seconds when a peer fails repair. Actual backoff = min(base * 2^consecutive_failures, max).
backoff_max_sec: u64Maximum backoff time in seconds (ceiling).
Implementations§
Trait Implementations§
Source§impl Clone for ColdPathConfig
impl Clone for ColdPathConfig
Source§fn clone(&self) -> ColdPathConfig
fn clone(&self) -> ColdPathConfig
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 ColdPathConfig
impl Debug for ColdPathConfig
Source§impl Default for ColdPathConfig
impl Default for ColdPathConfig
Source§impl<'de> Deserialize<'de> for ColdPathConfig
impl<'de> Deserialize<'de> for ColdPathConfig
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 ColdPathConfig
impl RefUnwindSafe for ColdPathConfig
impl Send for ColdPathConfig
impl Sync for ColdPathConfig
impl Unpin for ColdPathConfig
impl UnwindSafe for ColdPathConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more