pub struct TrackerTier {
pub trackers: Vec<TrackerEntry>,
pub current_index: usize,
pub consecutive_failures: u32,
}Expand description
A tier of trackers tried in order
Fields§
§trackers: Vec<TrackerEntry>§current_index: usize§consecutive_failures: u32Implementations§
Source§impl TrackerTier
impl TrackerTier
Sourcepub fn select_next(&mut self) -> Option<&TrackerEntry>
pub fn select_next(&mut self) -> Option<&TrackerEntry>
Select next available tracker within this tier, preferring higher reliability
Sourcepub fn mark_current_success(&mut self, latency_ms: f64)
pub fn mark_current_success(&mut self, latency_ms: f64)
Mark the current tracker as successful
Sourcepub fn mark_current_failure(&mut self)
pub fn mark_current_failure(&mut self)
Mark the current tracker as failed
Trait Implementations§
Source§impl Clone for TrackerTier
impl Clone for TrackerTier
Source§fn clone(&self) -> TrackerTier
fn clone(&self) -> TrackerTier
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 moreAuto Trait Implementations§
impl Freeze for TrackerTier
impl RefUnwindSafe for TrackerTier
impl Send for TrackerTier
impl Sync for TrackerTier
impl Unpin for TrackerTier
impl UnsafeUnpin for TrackerTier
impl UnwindSafe for TrackerTier
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