Struct ioc::Read [] [src]

pub struct Read<Svc>(_);

Trait Implementations

impl<Svc> Default for Read<Svc>
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl<'a, Key, SvcBase: ?Sized, Svc> Method<'a, Key, SvcBase> for Read<Svc> where Key: Key, Svc: Service<Key=Key>, SvcBase: Downcast<Svc>
[src]

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

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

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

impl<'a, Key, SvcBase: ?Sized, A> Method<'a, Key, SvcBase> for Read<(A,)> where Key: Key, A: Service<Key=Key>, SvcBase: Downcast<A>
[src]

type Ret = (Read<A>::Ret,)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B> Method<'a, Key, SvcBase> for Read<(A, B)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C> Method<'a, Key, SvcBase> for Read<(A, B, C)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D> Method<'a, Key, SvcBase> for Read<(A, B, C, D)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L, M> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L, M)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, M: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>, SvcBase: Downcast<M>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret, Read<M>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L, M, N> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L, M, N)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, M: Service<Key=Key>, N: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>, SvcBase: Downcast<M>, SvcBase: Downcast<N>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret, Read<M>::Ret, Read<N>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L, M, N, O> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L, M, N, O)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, M: Service<Key=Key>, N: Service<Key=Key>, O: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>, SvcBase: Downcast<M>, SvcBase: Downcast<N>, SvcBase: Downcast<O>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret, Read<M>::Ret, Read<N>::Ret, Read<O>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L, M, N, O, P> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L, M, N, O, P)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, M: Service<Key=Key>, N: Service<Key=Key>, O: Service<Key=Key>, P: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>, SvcBase: Downcast<M>, SvcBase: Downcast<N>, SvcBase: Downcast<O>, SvcBase: Downcast<P>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret, Read<M>::Ret, Read<N>::Ret, Read<O>::Ret, Read<P>::Ret)

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

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

impl<'a, Key, SvcBase: ?Sized, A, B, C, D, E, F, G, H, J, K, L, M, N, O, P, Q> Method<'a, Key, SvcBase> for Read<(A, B, C, D, E, F, G, H, J, K, L, M, N, O, P, Q)> where Key: Key, A: Service<Key=Key>, B: Service<Key=Key>, C: Service<Key=Key>, D: Service<Key=Key>, E: Service<Key=Key>, F: Service<Key=Key>, G: Service<Key=Key>, H: Service<Key=Key>, J: Service<Key=Key>, K: Service<Key=Key>, L: Service<Key=Key>, M: Service<Key=Key>, N: Service<Key=Key>, O: Service<Key=Key>, P: Service<Key=Key>, Q: Service<Key=Key>, SvcBase: Downcast<A>, SvcBase: Downcast<B>, SvcBase: Downcast<C>, SvcBase: Downcast<D>, SvcBase: Downcast<E>, SvcBase: Downcast<F>, SvcBase: Downcast<G>, SvcBase: Downcast<H>, SvcBase: Downcast<J>, SvcBase: Downcast<K>, SvcBase: Downcast<L>, SvcBase: Downcast<M>, SvcBase: Downcast<N>, SvcBase: Downcast<O>, SvcBase: Downcast<P>, SvcBase: Downcast<Q>
[src]

type Ret = (Read<A>::Ret, Read<B>::Ret, Read<C>::Ret, Read<D>::Ret, Read<E>::Ret, Read<F>::Ret, Read<G>::Ret, Read<H>::Ret, Read<J>::Ret, Read<K>::Ret, Read<L>::Ret, Read<M>::Ret, Read<N>::Ret, Read<O>::Ret, Read<P>::Ret, Read<Q>::Ret)

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

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