pub struct QueryEntry<V> {
pub value: V,
pub ttl: u32,
pub hits: u32,
}Expand description
A cached query result.
Fields§
§value: V§ttl: u32§hits: u32Trait Implementations§
Source§impl<V: Clone> Clone for QueryEntry<V>
impl<V: Clone> Clone for QueryEntry<V>
Source§fn clone(&self) -> QueryEntry<V>
fn clone(&self) -> QueryEntry<V>
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 moreAuto Trait Implementations§
impl<V> Freeze for QueryEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for QueryEntry<V>where
V: RefUnwindSafe,
impl<V> Send for QueryEntry<V>where
V: Send,
impl<V> Sync for QueryEntry<V>where
V: Sync,
impl<V> Unpin for QueryEntry<V>where
V: Unpin,
impl<V> UnsafeUnpin for QueryEntry<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for QueryEntry<V>where
V: 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