#[non_exhaustive]pub struct JwksStatus {
pub loaded: bool,
pub keys: usize,
pub refreshes: u64,
pub failures: u64,
pub consecutive_failures: u32,
pub changes: u64,
pub last_success: Option<SystemTime>,
pub age: Option<Duration>,
pub refresh_interval: Duration,
pub next_refresh_in: Duration,
pub last_error: Option<String>,
}Expand description
What a Jwks has done so far: the numbers a metric or a readiness check
reads. A snapshot, taken by Jwks::status.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.loaded: boolWhether a set has ever been fetched. Until it has, every token the JWKS would have verified is refused.
keys: usizeHow many keys the fetched set holds.
refreshes: u64Successful fetches, a fresh copy read from a JwksStore included.
failures: u64Failed fetches.
consecutive_failures: u32Failed fetches since the last successful one.
changes: u64How many times a fetch brought a set different from the one held.
last_success: Option<SystemTime>When the last successful fetch was.
age: Option<Duration>How long ago the set held was last confirmed by a successful fetch.
refresh_interval: DurationHow long a fetched set is used for: the last response’s max-age,
clamped, or the configured interval.
next_refresh_in: DurationHow long until the next fetch is due.
last_error: Option<String>Why the last fetch failed, while it is the most recent outcome.
Trait Implementations§
Source§impl Clone for JwksStatus
impl Clone for JwksStatus
Auto Trait Implementations§
impl Freeze for JwksStatus
impl RefUnwindSafe for JwksStatus
impl Send for JwksStatus
impl Sync for JwksStatus
impl Unpin for JwksStatus
impl UnsafeUnpin for JwksStatus
impl UnwindSafe for JwksStatus
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