Trait ioc::Method [] [src]

pub trait Method<'a, Key, SvcBase: ?Sized>: Any where Key: Key, SvcBase: Any {
    type Ret: 'a;
    fn resolve(ioc: &'a Container<Key, SvcBase>) -> Result<Self::Ret, Error<'a, Key>>;
    fn try_resolve(ioc: &'a Container<Key, SvcBase>) -> Result<Self::Ret, Error<'a, Key>>;
}

Associated Types

type Ret: 'a

Required Methods

fn resolve(ioc: &'a Container<Key, SvcBase>) -> Result<Self::Ret, Error<'a, Key>>

fn try_resolve(ioc: &'a Container<Key, SvcBase>) -> Result<Self::Ret, Error<'a, Key>>

Implementors