IocControllable

Trait IocControllable 

Source
pub trait IocControllable {
    // Required method
    fn from_ioc_container(
        container: &IocContainer,
        scope: Option<&ScopeId>,
    ) -> Result<Self, String>
       where Self: Sized;
}
Expand description

Trait for controllers that can be created from IoC container

Required Methods§

Source

fn from_ioc_container( container: &IocContainer, scope: Option<&ScopeId>, ) -> Result<Self, String>
where Self: Sized,

Create controller instance with dependencies resolved from IoC container

Implementors§