pub struct ProviderHealth {
pub provider: String,
pub reason: String,
pub consecutive_failures: u32,
pub retry_in_secs: u64,
}Expand description
One provider the daemon has stopped sending work to, sampled alongside
LaneHealth.
Daemon-wide for the same reason as LaneHealth: a provider out of credits
belongs to no single run, and the runs it kills emit nothing useful because
they die before doing anything (issue #201).
reason is the label rather than the runtime’s own enum: this crate sits
below leviath-providers, so the type that names it is not in scope here.
Fields§
§provider: StringThe provider taken out of service.
reason: StringWhy, as a stable lowercase label (credits-exhausted, auth-failed).
consecutive_failures: u32Consecutive failures accumulated against it.
retry_in_secs: u64Seconds until it is probed again.
Trait Implementations§
Source§impl Clone for ProviderHealth
impl Clone for ProviderHealth
Source§fn clone(&self) -> ProviderHealth
fn clone(&self) -> ProviderHealth
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 moreSource§impl Debug for ProviderHealth
impl Debug for ProviderHealth
impl Eq for ProviderHealth
Source§impl PartialEq for ProviderHealth
impl PartialEq for ProviderHealth
impl StructuralPartialEq for ProviderHealth
Auto Trait Implementations§
impl Freeze for ProviderHealth
impl RefUnwindSafe for ProviderHealth
impl Send for ProviderHealth
impl Sync for ProviderHealth
impl Unpin for ProviderHealth
impl UnsafeUnpin for ProviderHealth
impl UnwindSafe for ProviderHealth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.