pub struct NoopCollector;Expand description
Default no-op implementation.
Trait Implementations§
Source§impl MetricsCollector for NoopCollector
impl MetricsCollector for NoopCollector
Source§fn on_selection(&self, _node_id: &dyn Debug, _strategy_name: &str)
fn on_selection(&self, _node_id: &dyn Debug, _strategy_name: &str)
Called each time a strategy selects a node.
Source§fn on_health_change(
&self,
_node_id: &dyn Debug,
_from: HealthStatus,
_to: HealthStatus,
)
fn on_health_change( &self, _node_id: &dyn Debug, _from: HealthStatus, _to: HealthStatus, )
Called when a node’s health status transitions.
Auto Trait Implementations§
impl Freeze for NoopCollector
impl RefUnwindSafe for NoopCollector
impl Send for NoopCollector
impl Sync for NoopCollector
impl Unpin for NoopCollector
impl UnsafeUnpin for NoopCollector
impl UnwindSafe for NoopCollector
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