pub struct ReactiveScheduler { /* private fields */ }Expand description
Probe scheduler that sends only on topology events, with rate limiting.
Implementations§
Source§impl ReactiveScheduler
impl ReactiveScheduler
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 ReactiveScheduler
impl NeighborProbeStrategy for ReactiveScheduler
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 ReactiveScheduler
impl RefUnwindSafe for ReactiveScheduler
impl Send for ReactiveScheduler
impl Sync for ReactiveScheduler
impl Unpin for ReactiveScheduler
impl UnwindSafe for ReactiveScheduler
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