pub struct ServiceContainer { /* private fields */ }
Trait Implementations§
Source§impl AsyncServices for ServiceContainer
impl AsyncServices for ServiceContainer
Source§impl Clone for ServiceContainer
impl Clone for ServiceContainer
Source§fn clone(&self) -> ServiceContainer
fn clone(&self) -> ServiceContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceContainer
impl Debug for ServiceContainer
Source§impl Default for ServiceContainer
impl Default for ServiceContainer
Source§fn default() -> ServiceContainer
fn default() -> ServiceContainer
Returns the “default value” for a type. Read more
Source§impl Services for ServiceContainer
impl Services for ServiceContainer
Source§fn has<S>(&self) -> boolwhere
S: ?Sized + 'static,
fn has<S>(&self) -> boolwhere
S: ?Sized + 'static,
Returns whether the service container has the specified service or not.
Source§fn get<S>(&self) -> Option<Arc<S>>
fn get<S>(&self) -> Option<Arc<S>>
Gets the service from the service container.
Asynchronous services can not be retrieved using this method.
Use [
AsyncServices::get
] for resolving a service asynchronously.Auto Trait Implementations§
impl Freeze for ServiceContainer
impl !RefUnwindSafe for ServiceContainer
impl Send for ServiceContainer
impl Sync for ServiceContainer
impl Unpin for ServiceContainer
impl !UnwindSafe for ServiceContainer
Blanket Implementations§
Source§impl<C> AsyncBindServices for Cwhere
C: AsyncServices,
impl<C> AsyncBindServices for Cwhere
C: AsyncServices,
Source§impl<C> BindServices for Cwhere
C: Services,
impl<C> BindServices for Cwhere
C: Services,
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