pub struct Cached<T, C> {
pub inner: T,
pub cache: C,
}
Fields§
§inner: T
§cache: C
Implementations§
Trait Implementations§
Source§impl<R, C> Resolver for Cached<R, C>where
R: Resolver + Send + Sync + 'static,
R::Input: Clone + Hash + Eq + Send + Sync + 'static,
R::Output: Clone + Send + Sync + 'static,
C: Cache<Input = R::Input, Output = R::Output> + Send + Sync + 'static,
C::Input: Clone + Hash + Eq + Send + Sync + 'static,
C::Output: Clone + Send + Sync + 'static,
impl<R, C> Resolver for Cached<R, C>where
R: Resolver + Send + Sync + 'static,
R::Input: Clone + Hash + Eq + Send + Sync + 'static,
R::Output: Clone + Send + Sync + 'static,
C: Cache<Input = R::Input, Output = R::Output> + Send + Sync + 'static,
C::Input: Clone + Hash + Eq + Send + Sync + 'static,
C::Output: Clone + Send + Sync + 'static,
Auto Trait Implementations§
impl<T, C> Freeze for Cached<T, C>
impl<T, C> RefUnwindSafe for Cached<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Cached<T, C>
impl<T, C> Sync for Cached<T, C>
impl<T, C> Unpin for Cached<T, C>
impl<T, C> UnwindSafe for Cached<T, C>where
T: UnwindSafe,
C: 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