pub struct BackoffScheduler { /* private fields */ }Expand description
Probe scheduler that uses exponential back-off with jitter.
Implementations§
Source§impl BackoffScheduler
impl BackoffScheduler
Sourcepub fn from_discovery_config(cfg: &DiscoveryConfig) -> Self
pub fn from_discovery_config(cfg: &DiscoveryConfig) -> Self
Build from the relevant fields of a DiscoveryConfig.
Trait Implementations§
Source§impl NeighborProbeStrategy for BackoffScheduler
impl NeighborProbeStrategy for BackoffScheduler
Source§fn on_tick(&mut self, now: Instant) -> Vec<ProbeRequest>
fn on_tick(&mut self, now: Instant) -> Vec<ProbeRequest>
Advance the scheduler’s clock to
now. Read moreSource§fn on_probe_success(&mut self, _rtt: Duration)
fn on_probe_success(&mut self, _rtt: Duration)
A probe response was received with the given round-trip time. Read more
Source§fn on_probe_timeout(&mut self)
fn on_probe_timeout(&mut self)
A probe timed out (no response within
probe_timeout). Read moreSource§fn trigger(&mut self, _event: TriggerEvent)
fn trigger(&mut self, _event: TriggerEvent)
An external topology event occurred. Read more
Auto Trait Implementations§
impl Freeze for BackoffScheduler
impl RefUnwindSafe for BackoffScheduler
impl Send for BackoffScheduler
impl Sync for BackoffScheduler
impl Unpin for BackoffScheduler
impl UnwindSafe for BackoffScheduler
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