Struct anterofit::net::intercept::Chain [−][src]
pub struct Chain<I1, I2>(_, _);
Chains one interceptor with another, invoking them in declaration order.
Trait Implementations
impl<I1: Debug, I2: Debug> Debug for Chain<I1, I2>
[src]
impl<I1: Debug, I2: Debug> Debug for Chain<I1, I2>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<I1: Interceptor, I2: Interceptor> Interceptor for Chain<I1, I2>
[src]
impl<I1: Interceptor, I2: Interceptor> Interceptor for Chain<I1, I2>
fn intercept(&self, req: &mut RequestHead)
[src]
fn intercept(&self, req: &mut RequestHead)
Modify the request head in any way desired. Read more
fn debug(&self, f: &mut Formatter) -> Result
[src]
fn debug(&self, f: &mut Formatter) -> Result
Write debug output equivalent to std::fmt::Debug
.
fn chain<I>(self, then: I) -> Chain<Self, I> where
Self: Sized,
I: Interceptor,
[src]
fn chain<I>(self, then: I) -> Chain<Self, I> where
Self: Sized,
I: Interceptor,
Chain self
with then
, invoking self
then then
for each request.
fn chain2<I1, I2>(self, then: I1, after: I2) -> Chain2<Self, I1, I2> where
Self: Sized,
I1: Interceptor,
I2: Interceptor,
[src]
fn chain2<I1, I2>(self, then: I1, after: I2) -> Chain2<Self, I1, I2> where
Self: Sized,
I1: Interceptor,
I2: Interceptor,
Chain self
with two more interceptors. Read more