Struct anterofit::InterceptorMut [−][src]
pub struct InterceptorMut<'a>(_);
A mutator for modifying the Interceptor
of an Adapter
.
Methods
impl<'a> InterceptorMut<'a>
[src]
impl<'a> InterceptorMut<'a>
pub fn remove(&mut self)
[src]
pub fn remove(&mut self)
Remove the interceptor from the adapter.
pub fn set<I>(&mut self, new: I) where
I: Interceptor,
[src]
pub fn set<I>(&mut self, new: I) where
I: Interceptor,
Set a new interceptor, discarding the old one.
pub fn chain_before<I>(&mut self, before: I) where
I: Interceptor,
[src]
pub fn chain_before<I>(&mut self, before: I) where
I: Interceptor,
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.
pub fn chain_after<I>(&mut self, after: I) where
I: Interceptor,
[src]
pub fn chain_after<I>(&mut self, after: I) where
I: 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.
pub fn chain_around<I1, I2>(&mut self, before: I1, after: I2) where
I1: Interceptor,
I2: Interceptor,
[src]
pub fn chain_around<I1, I2>(&mut self, before: I1, after: I2) where
I1: Interceptor,
I2: Interceptor,
Chain the given Interceptor
s 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> Send for InterceptorMut<'a>
impl<'a> Sync for InterceptorMut<'a>
impl<'a> Sync for InterceptorMut<'a>