Struct ioc::Read [] [src]

pub struct Read<Svc>(_);

Trait Implementations

impl<'a, Svc, Key, Base: ?Sized> InvocationMethod<'a, Key, Base> for Read<Svc> where Svc: ServiceReflect<Key=Key>, Key: ServiceKey, Base: Downcast<Svc>
[src]

type Args = ()

type Ret = ReadGuard<'a, Svc, Base>

type Error = LockError<'a, Svc::Key>

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