pub struct Query<K>(pub K::Value)
where
K: TypeCacheKey;Expand description
“Query” a value from the global_cache of the RequestState and clone it.
Tuple Fields§
§0: K::ValueTrait Implementations§
Source§impl<K> Resolve for Query<K>
impl<K> Resolve for Query<K>
fn resolve(ctx: &mut RequestState<'_>) -> ResolveGuard<Self>
Auto Trait Implementations§
impl<K> Freeze for Query<K>
impl<K> RefUnwindSafe for Query<K>
impl<K> Send for Query<K>
impl<K> Sync for Query<K>
impl<K> Unpin for Query<K>
impl<K> UnwindSafe for Query<K>
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