Struct dfdi::CachedService
source · Expand description
Cached service
A provider that returns the same reference on every call
Tuple Fields
0: S::Output<'cx>Implementations
Trait Implementations
Auto Trait Implementations
impl<'cx, S> RefUnwindSafe for CachedService<'cx, S>where
<S as Service>::Output<'cx>: RefUnwindSafe,
impl<'cx, S> Send for CachedService<'cx, S>where
<S as Service>::Output<'cx>: Send,
impl<'cx, S> Sync for CachedService<'cx, S>where
<S as Service>::Output<'cx>: Sync,
impl<'cx, S> Unpin for CachedService<'cx, S>where
<S as Service>::Output<'cx>: Unpin,
impl<'cx, S> UnwindSafe for CachedService<'cx, S>where
<S as Service>::Output<'cx>: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more