pub enum FreshnessLevel {
Live {
latency_ms: u64,
},
Fresh {
age_secs: u64,
},
Acceptable {
age_secs: u64,
},
Aging {
age_secs: u64,
concern: String,
},
Stale {
age_secs: u64,
usable: bool,
},
Ancient {
age_secs: u64,
archival: bool,
},
Unknown {
last_known: Option<i64>,
},
}Variants§
Trait Implementations§
Source§impl Clone for FreshnessLevel
impl Clone for FreshnessLevel
Source§fn clone(&self) -> FreshnessLevel
fn clone(&self) -> FreshnessLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 FreshnessLevel
impl Debug for FreshnessLevel
Source§impl<'de> Deserialize<'de> for FreshnessLevel
impl<'de> Deserialize<'de> for FreshnessLevel
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
Auto Trait Implementations§
impl Freeze for FreshnessLevel
impl RefUnwindSafe for FreshnessLevel
impl Send for FreshnessLevel
impl Sync for FreshnessLevel
impl Unpin for FreshnessLevel
impl UnsafeUnpin for FreshnessLevel
impl UnwindSafe for FreshnessLevel
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