pub struct Container { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Contract for Container
impl Contract for Container
fn bind<T, F>(&self, factory: F)
fn resolve<T>(&self) -> Arc<T>
fn add_provider( &self, provider: Box<dyn ServiceProvider<Self> + 'static>, ) -> &Self
fn add_providers( &self, providers: Vec<Box<dyn ServiceProvider<Container>>>, ) -> &Self
fn boot(&self) -> &Self
Source§fn with_provider(
self,
provider: Box<dyn ServiceProvider<Self> + 'static>,
) -> Self
fn with_provider( self, provider: Box<dyn ServiceProvider<Self> + 'static>, ) -> Self
Builder pattern for adding a provider.
Auto Trait Implementations§
impl !Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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