pub struct Container { /* private fields */ }
Implementations§
Source§impl Container
impl Container
pub fn builder() -> ContainerBuilder
pub fn get_config(&self) -> &Arc<AppConfig>
pub fn get_database(&self) -> &Arc<dyn DatabaseConnection>
pub fn set_config(&mut self, value: Arc<AppConfig>)
pub fn set_database(&mut self, value: Arc<dyn DatabaseConnection>)
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