pub struct Container { /* private fields */ }Expand description
Re-exported public API.
Public Caelix type Container.
Implementations§
Source§impl Container
impl Container
Sourcepub fn register_instance<T: Send + Sync + 'static>(&mut self, value: T)
pub fn register_instance<T: Send + Sync + 'static>(&mut self, value: T)
Runs the register_instance public API operation.
Sourcepub async fn register<T: Injectable>(&mut self) -> Result<()>
pub async fn register<T: Injectable>(&mut self) -> Result<()>
Runs the register public API operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Container
impl !UnwindSafe for Container
impl Freeze for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin 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