pub struct BootstrapOptions {
pub nodes: Vec<String>,
pub interval_secs: u64,
pub max_nodes_per_round: usize,
pub source_backoff_base_secs: u64,
pub source_backoff_max_secs: u64,
}Expand description
Bootstrap hostnames and retry timing.
Fields§
§nodes: Vec<String>Host:port sources resolved when bootstrap is needed.
interval_secs: u64Minimum interval between bootstrap rounds, in seconds.
max_nodes_per_round: usizeMaximum resolved endpoints selected in one round.
source_backoff_base_secs: u64Initial failed-source backoff in seconds.
source_backoff_max_secs: u64Maximum failed-source backoff in seconds.
Trait Implementations§
Source§impl Clone for BootstrapOptions
impl Clone for BootstrapOptions
Source§fn clone(&self) -> BootstrapOptions
fn clone(&self) -> BootstrapOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BootstrapOptions
impl Debug for BootstrapOptions
Auto Trait Implementations§
impl Freeze for BootstrapOptions
impl RefUnwindSafe for BootstrapOptions
impl Send for BootstrapOptions
impl Sync for BootstrapOptions
impl Unpin for BootstrapOptions
impl UnsafeUnpin for BootstrapOptions
impl UnwindSafe for BootstrapOptions
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