pub struct MaxAge {
pub limit_ns: i128,
pub text: String,
}Expand description
An age limit as a caller wrote it: the limit in nanoseconds the elapsed
time is compared with (the floor of the reference’s max_age * 1e9, which
compares the same for a whole number of nanoseconds), and its text for the
refusal.
Fields§
§limit_ns: i128§text: StringTrait Implementations§
impl Eq for MaxAge
impl StructuralPartialEq for MaxAge
Auto Trait Implementations§
impl Forget for MaxAge
impl Freeze for MaxAge
impl Move for MaxAge
impl RefUnwindSafe for MaxAge
impl Send for MaxAgewhere
RawVecInner: Send,
impl Sync for MaxAgewhere
RawVecInner: Sync,
impl Unpin for MaxAge
impl UnsafeUnpin for MaxAge
impl UnwindSafe for MaxAgewhere
RawVecInner: UnwindSafe,
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.