Struct tokio_interceptor::Context [−][src]
pub struct Context<E> { pub coeffects: AnyMap, pub effects: Vec<Box<Effect>>, pub queue: InterceptorQueue<E>, pub stack: Vec<Rc<Box<Interceptor<Error = E>>>>, }
Fields
coeffects: AnyMap
effects: Vec<Box<Effect>>
queue: InterceptorQueue<E>
stack: Vec<Rc<Box<Interceptor<Error = E>>>>
Methods
impl<E> Context<E>
[src]
impl<E> Context<E>
pub fn new(interceptors: Vec<Rc<Box<Interceptor<Error = E>>>>) -> Context<E>
[src]
pub fn new(interceptors: Vec<Rc<Box<Interceptor<Error = E>>>>) -> Context<E>
pub fn push_effect<Eff: 'static + Effect>(&mut self, effect: Eff)
[src]
pub fn push_effect<Eff: 'static + Effect>(&mut self, effect: Eff)
pub fn next(self) -> Box<Future<Item = Context<E>, Error = E>> where
E: 'static,
[src]
pub fn next(self) -> Box<Future<Item = Context<E>, Error = E>> where
E: 'static,