pub struct OverlayConfig {
pub public_overlay_peer_store_period: Duration,
pub public_overlay_peer_store_max_jitter: Duration,
pub public_overlay_peer_store_max_entries: usize,
pub public_overlay_peer_exchange_period: Duration,
pub public_overlay_peer_exchange_max_jitter: Duration,
pub public_overlay_peer_collect_period: Duration,
pub public_overlay_peer_collect_max_jitter: Duration,
pub public_overlay_peer_discovery_period: Duration,
pub public_overlay_peer_discovery_max_jitter: Duration,
pub exchange_public_entries_batch: usize,
pub query_timeout: Duration,
}Fields§
§public_overlay_peer_store_period: DurationA period of storing public overlay entries in local DHT.
Default: 3 minutes.
public_overlay_peer_store_max_jitter: DurationA maximum value of a random jitter for the entries store period.
Default: 30 seconds.
public_overlay_peer_store_max_entries: usizeA maximum number of public overlay entries to store.
Default: 20.
public_overlay_peer_exchange_period: DurationA period of exchanging public overlay peers.
Default: 3 minutes.
public_overlay_peer_exchange_max_jitter: DurationA maximum value of a random jitter for the peer exchange period.
Default: 30 seconds.
public_overlay_peer_collect_period: DurationA period of collecting public overlay entries.
Default: 3 minutes.
public_overlay_peer_collect_max_jitter: DurationA maximum value of a random jitter for the peer collect period.
Default: 30 seconds.
public_overlay_peer_discovery_period: DurationA period of discovering public overlay peers.
Default: 3 minutes.
public_overlay_peer_discovery_max_jitter: DurationA maximum value of a random jitter for the peer discovery period.
Default: 30 seconds.
exchange_public_entries_batch: usizeNumber of peers to send during entries exchange request.
Default: 20.
query_timeout: DurationTimeout for a single query in collect_public_entries.
Default: 100 ms.
Trait Implementations§
Source§impl Clone for OverlayConfig
impl Clone for OverlayConfig
Source§fn clone(&self) -> OverlayConfig
fn clone(&self) -> OverlayConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OverlayConfig
impl Debug for OverlayConfig
Source§impl Default for OverlayConfig
impl Default for OverlayConfig
Source§impl<'de> Deserialize<'de> for OverlayConfigwhere
OverlayConfig: Default,
impl<'de> Deserialize<'de> for OverlayConfigwhere
OverlayConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for OverlayConfig
impl RefUnwindSafe for OverlayConfig
impl Send for OverlayConfig
impl Sync for OverlayConfig
impl Unpin for OverlayConfig
impl UnsafeUnpin for OverlayConfig
impl UnwindSafe for OverlayConfig
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
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>
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>
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