pub struct TtlEntry<K, T>{
pub id: K,
pub data: T,
/* private fields */
}
Expand description
A time-to-live entry that should remain available until the provided ttl
value.
These are used to store order ids, id
, and the creation time, data
, of orders, but was left
generic for potential later use.
Fields§
§id: K
§data: T
Implementations§
Trait Implementations§
Source§impl<K, T> Ord for TtlEntry<K, T>
impl<K, T> Ord for TtlEntry<K, T>
Source§impl<K, T> PartialOrd for TtlEntry<K, T>
impl<K, T> PartialOrd for TtlEntry<K, T>
impl<K, T> Copy for TtlEntry<K, T>
impl<K, T> Eq for TtlEntry<K, T>
Auto Trait Implementations§
impl<K, T> Freeze for TtlEntry<K, T>
impl<K, T> RefUnwindSafe for TtlEntry<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for TtlEntry<K, T>
impl<K, T> Sync for TtlEntry<K, T>
impl<K, T> Unpin for TtlEntry<K, T>
impl<K, T> UnwindSafe for TtlEntry<K, T>where
K: UnwindSafe,
T: 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.