pub struct RevocationHealth {
pub available: bool,
pub local_entries: usize,
pub seconds_since_last_success: Option<u64>,
}Expand description
Local, nonblocking health of a revocation dependency.
Fields§
§available: boolWhether dependency reads are currently admitted by the circuit breaker.
local_entries: usizeNumber of cached entries known to be revoked; never live-token entries.
seconds_since_last_success: Option<u64>Elapsed monotonic seconds since the last successful dependency call.
Trait Implementations§
Source§impl Clone for RevocationHealth
impl Clone for RevocationHealth
Source§fn clone(&self) -> RevocationHealth
fn clone(&self) -> RevocationHealth
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 RevocationHealth
impl Debug for RevocationHealth
Source§impl PartialEq for RevocationHealth
impl PartialEq for RevocationHealth
Source§fn eq(&self, other: &RevocationHealth) -> bool
fn eq(&self, other: &RevocationHealth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RevocationHealth
impl Eq for RevocationHealth
impl StructuralPartialEq for RevocationHealth
Auto Trait Implementations§
impl Freeze for RevocationHealth
impl RefUnwindSafe for RevocationHealth
impl Send for RevocationHealth
impl Sync for RevocationHealth
impl Unpin for RevocationHealth
impl UnsafeUnpin for RevocationHealth
impl UnwindSafe for RevocationHealth
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.