pub struct Cached<S> { /* private fields */ }Available on crate feature
client and crate feature client-pool and docsrs only.Expand description
A cached service returned from a Cache.
Implements Service by delegating to the inner service. Once dropped,
tries to reinsert into the Cache.
§Unnameable
This type is normally unnameable, forbidding naming of the type within code. The type is exposed in the documentation to show which methods can be publicly called.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Cached<S>where
S: Freeze,
impl<S> RefUnwindSafe for Cached<S>where
S: RefUnwindSafe,
impl<S> Send for Cached<S>where
S: Send,
impl<S> Sync for Cached<S>
impl<S> Unpin for Cached<S>where
S: Unpin,
impl<S> UnwindSafe for Cached<S>where
S: 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