pub struct PassiveScheduler { /* private fields */ }Expand description
Probe scheduler that uses passive MAC overhearing with backoff fallback.
Implementations§
Source§impl PassiveScheduler
impl PassiveScheduler
Sourcepub fn from_discovery_config(cfg: &DiscoveryConfig) -> Self
pub fn from_discovery_config(cfg: &DiscoveryConfig) -> Self
Build from the relevant fields of a DiscoveryConfig.
Source§impl PassiveScheduler
Enqueue a unicast probe toward a specific face detected passively.
impl PassiveScheduler
Enqueue a unicast probe toward a specific face detected passively.
Call this after [trigger](TriggerEvent::PassiveDetection) when the
detected MAC maps to an existing FaceId that needs a hello.
pub fn enqueue_unicast(&mut self, face_id: FaceId)
Trait Implementations§
Source§impl NeighborProbeStrategy for PassiveScheduler
impl NeighborProbeStrategy for PassiveScheduler
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 PassiveScheduler
impl RefUnwindSafe for PassiveScheduler
impl Send for PassiveScheduler
impl Sync for PassiveScheduler
impl Unpin for PassiveScheduler
impl UnwindSafe for PassiveScheduler
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