pub struct LicenceExchangeConfig {
pub sync_interval: Duration,
pub sync_min_gap: Duration,
pub sync_ban: Duration,
pub max_pages: u32,
pub sync_on_connect: bool,
}Expand description
Timing knobs of the exchange.
Fields§
§sync_interval: DurationPeriod of the background catch-up sync (30 min).
sync_min_gap: DurationLeast gap between two syncs answered for one peer (1 min).
sync_ban: DurationHow long a peer that sent a bad signature is not synced with (10 min).
max_pages: u32Most pages followed in one sync session.
sync_on_connect: boolSync with a peer as soon as it connects.
Trait Implementations§
Source§impl Clone for LicenceExchangeConfig
impl Clone for LicenceExchangeConfig
Source§impl Debug for LicenceExchangeConfig
impl Debug for LicenceExchangeConfig
Auto Trait Implementations§
impl Freeze for LicenceExchangeConfig
impl RefUnwindSafe for LicenceExchangeConfig
impl Send for LicenceExchangeConfig
impl Sync for LicenceExchangeConfig
impl Unpin for LicenceExchangeConfig
impl UnsafeUnpin for LicenceExchangeConfig
impl UnwindSafe for LicenceExchangeConfig
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