Struct anterofit::InterceptorMut[][src]

pub struct InterceptorMut<'a>(_);

A mutator for modifying the Interceptor of an Adapter.

Methods

impl<'a> InterceptorMut<'a>
[src]

Remove the interceptor from the adapter.

Set a new interceptor, discarding the old one.

Chain the given Interceptor before the one currently in the adapter.

Equivalent to set(before) if the adapter does not have an interceptor or was constructed with NoIntercept as the interceptor.

Chain the given Interceptor after the one currently in the adapter.

Equivalent to set(after) if the adapter does not have an interceptor or was constructed with NoIntercept as the interceptor.

Chain the given Interceptors before and after the one currently in the adapter.

This saves a level of boxing over calling chain_before() and chain_after() separately.

Equivalent to set(before.chain(after)) if the adapter does not have an interceptor or was constructed with NoIntercept as the interceptor.

Auto Trait Implementations

impl<'a> Send for InterceptorMut<'a>

impl<'a> Sync for InterceptorMut<'a>