Struct ioc::Write [] [src]

pub struct Write<Svc>(_);

Trait Implementations

impl<'a, Svc, Key, Base: ?Sized> InvocationMethod<'a, Key, Base> for Write<Svc> where Svc: ServiceReflect, Key: Borrow<Svc::Key> + Debug + Ord, Base: Downcast<Svc>
[src]

type Args = ()

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

type Error = LockError<&'static Svc::Key>

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