pub struct Fetched<T> {
pub value: T,
pub cached_at: Option<i64>,
}Expand description
A value plus where it came from: cached_at is the time the cached
response was fetched, or None if it was just fetched live.
Fields§
§value: T§cached_at: Option<i64>Implementations§
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Fetched<T>
Auto Trait Implementations§
impl<T> Forget for Fetched<T>
impl<T> Freeze for Fetched<T>where
T: Freeze,
impl<T> RefUnwindSafe for Fetched<T>where
T: RefUnwindSafe,
impl<T> Send for Fetched<T>where
T: Send,
impl<T> Sync for Fetched<T>where
T: Sync,
impl<T> Unpin for Fetched<T>where
T: Unpin,
impl<T> UnsafeUnpin for Fetched<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Fetched<T>where
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