pub struct ScopedControllerRegistry<'a> { /* private fields */ }
Expand description
Scoped controller registry for request-specific dependency injection
Implementations§
Source§impl<'a> ScopedControllerRegistry<'a>
impl<'a> ScopedControllerRegistry<'a>
Sourcepub async fn create_controller(
&self,
name: &str,
) -> Result<Arc<dyn ElifController>, HttpError>
pub async fn create_controller( &self, name: &str, ) -> Result<Arc<dyn ElifController>, HttpError>
Create a controller instance within this scope
Auto Trait Implementations§
impl<'a> Freeze for ScopedControllerRegistry<'a>
impl<'a> !RefUnwindSafe for ScopedControllerRegistry<'a>
impl<'a> Send for ScopedControllerRegistry<'a>
impl<'a> Sync for ScopedControllerRegistry<'a>
impl<'a> Unpin for ScopedControllerRegistry<'a>
impl<'a> !UnwindSafe for ScopedControllerRegistry<'a>
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