pub struct ConnectionHealth {
pub last_refresh_at: Option<DateTime<Utc>>,
pub last_failure: Option<ClassifiedFailure>,
pub consecutive_failures: u32,
}Expand description
The health half of a ConnectionRecord: refresh bookkeeping and
failure classification, metadata by construction — nothing here can
carry credential bytes.
Fields§
§last_refresh_at: Option<DateTime<Utc>>When the token material was last refreshed (a recorded consent act counts — it replaces the material).
last_failure: Option<ClassifiedFailure>The most recent classified failure, when one was observed.
consecutive_failures: u32Consecutive failures since the last success. Reset by any successful refresh or consent.
Trait Implementations§
Source§impl Clone for ConnectionHealth
impl Clone for ConnectionHealth
Source§impl Debug for ConnectionHealth
impl Debug for ConnectionHealth
Source§impl Default for ConnectionHealth
impl Default for ConnectionHealth
Source§impl<'de> Deserialize<'de> for ConnectionHealth
impl<'de> Deserialize<'de> for ConnectionHealth
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 ConnectionHealth
impl PartialEq for ConnectionHealth
Source§impl Serialize for ConnectionHealth
impl Serialize for ConnectionHealth
impl StructuralPartialEq for ConnectionHealth
Auto Trait Implementations§
impl Freeze for ConnectionHealth
impl RefUnwindSafe for ConnectionHealth
impl Send for ConnectionHealth
impl Sync for ConnectionHealth
impl Unpin for ConnectionHealth
impl UnsafeUnpin for ConnectionHealth
impl UnwindSafe for ConnectionHealth
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