Struct ioc::Create [] [src]

pub struct Create<Obj>(_);

Trait Implementations

impl<'a, Obj, Key, Base: ?Sized> InvocationMethod<'a, Key, Base> for Create<Obj> where Obj: FactoryObject, Obj::Factory: ServiceReflect<Key=Key>, Key: ServiceKey, Base: Downcast<Obj::Factory>
[src]

type Args = Obj::Factory::Args

type Ret = Obj

type Error = CreationError<'a, Obj::Factory::Key, Obj::Factory::Error>

fn invoke(services: &'a BTreeMap<Key, RwLock<Box<Base>>>, args: Self::Args) -> Result<Self::Ret, Self::Error>