pub struct BlackBoxApp { /* private fields */ }Implementations§
Source§impl BlackBoxApp
impl BlackBoxApp
pub fn new(container: RefMut<Container>) -> BlackBoxApp
pub fn get_container(&self) -> RefMut<Container>
Sourcepub fn get<TInjectable: CastFrom>(&self) -> Result<Ref<TInjectable>, String>
pub fn get<TInjectable: CastFrom>(&self) -> Result<Ref<TInjectable>, String>
Retrieves an instance of either injectable, otherwise, throws error.
Sourcepub fn get_by_token<TInjectable: ?Sized + CastFrom>(
&self,
token: &InstanceToken,
) -> Result<Ref<TInjectable>, String>
pub fn get_by_token<TInjectable: ?Sized + CastFrom>( &self, token: &InstanceToken, ) -> Result<Ref<TInjectable>, String>
Retrieves an instance of either injectable by token, otherwise, throws error.
pub fn use_logger(&self, logger: Ref<dyn ILogger>)
Auto Trait Implementations§
impl Freeze for BlackBoxApp
impl RefUnwindSafe for BlackBoxApp
impl Send for BlackBoxApp
impl Sync for BlackBoxApp
impl Unpin for BlackBoxApp
impl UnwindSafe for BlackBoxApp
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