pub struct Singled<S> { /* private fields */ }Available on crate feature
client and crate feature client-pool and docsrs only.Expand description
A cached service returned from a Singleton.
Implements Service by delegating to the inner service. If
poll_ready returns an error, this will clear the cache in the related
Singleton.
§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.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Singled<S>where
S: Freeze,
impl<S> RefUnwindSafe for Singled<S>where
S: RefUnwindSafe,
impl<S> Send for Singled<S>where
S: Send,
impl<S> Sync for Singled<S>
impl<S> Unpin for Singled<S>where
S: Unpin,
impl<S> UnwindSafe for Singled<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