pub struct IocControllerFactory<T> { /* private fields */ }
Expand description
Generic controller factory that uses the from_ioc_container method
Implementations§
Source§impl<T> IocControllerFactory<T>
impl<T> IocControllerFactory<T>
Trait Implementations§
Source§impl<T> ControllerFactory for IocControllerFactory<T>where
T: ElifController + IocControllable + 'static,
impl<T> ControllerFactory for IocControllerFactory<T>where
T: ElifController + IocControllable + 'static,
Source§fn create_controller<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 IocContainer,
scope: Option<&'life2 ScopeId>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ElifController>, HttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_controller<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 IocContainer,
scope: Option<&'life2 ScopeId>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ElifController>, HttpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a controller instance with dependencies resolved from the container
Auto Trait Implementations§
impl<T> Freeze for IocControllerFactory<T>
impl<T> RefUnwindSafe for IocControllerFactory<T>where
T: RefUnwindSafe,
impl<T> Send for IocControllerFactory<T>where
T: Send,
impl<T> Sync for IocControllerFactory<T>where
T: Sync,
impl<T> Unpin for IocControllerFactory<T>where
T: Unpin,
impl<T> UnwindSafe for IocControllerFactory<T>where
T: UnwindSafe,
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