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: Borrow<Obj::Factory::Key> + Debug + Ord, Base: Downcast<Obj::Factory>
[src]

type Args = Obj::Factory::Args

type Ret = Obj

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

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