pub struct PassiveUpstreamHealth {
pub score: u8,
pub state: PassiveHealthState,
pub observed_at_ms: u64,
pub last_success_at_ms: Option<u64>,
pub last_failure_at_ms: Option<u64>,
pub last_status_code: Option<u16>,
pub last_error_class: Option<String>,
pub last_error: Option<String>,
pub consecutive_failures: u32,
pub recent_successes: u32,
pub recent_failures: u32,
}Fields§
§score: u8§state: PassiveHealthState§observed_at_ms: u64§last_success_at_ms: Option<u64>§last_failure_at_ms: Option<u64>§last_status_code: Option<u16>§last_error_class: Option<String>§last_error: Option<String>§consecutive_failures: u32§recent_successes: u32§recent_failures: u32Trait Implementations§
Source§impl Clone for PassiveUpstreamHealth
impl Clone for PassiveUpstreamHealth
Source§fn clone(&self) -> PassiveUpstreamHealth
fn clone(&self) -> PassiveUpstreamHealth
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 PassiveUpstreamHealth
impl Debug for PassiveUpstreamHealth
Source§impl Default for PassiveUpstreamHealth
impl Default for PassiveUpstreamHealth
Source§fn default() -> PassiveUpstreamHealth
fn default() -> PassiveUpstreamHealth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PassiveUpstreamHealth
impl<'de> Deserialize<'de> for PassiveUpstreamHealth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PassiveUpstreamHealth
impl PartialEq for PassiveUpstreamHealth
Source§fn eq(&self, other: &PassiveUpstreamHealth) -> bool
fn eq(&self, other: &PassiveUpstreamHealth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PassiveUpstreamHealth
impl Serialize for PassiveUpstreamHealth
impl Eq for PassiveUpstreamHealth
impl StructuralPartialEq for PassiveUpstreamHealth
Auto Trait Implementations§
impl Freeze for PassiveUpstreamHealth
impl RefUnwindSafe for PassiveUpstreamHealth
impl Send for PassiveUpstreamHealth
impl Sync for PassiveUpstreamHealth
impl Unpin for PassiveUpstreamHealth
impl UnsafeUnpin for PassiveUpstreamHealth
impl UnwindSafe for PassiveUpstreamHealth
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.