pub struct CallbackLayer<M> { /* private fields */ }
Expand description
Layer
that adds callbacks to a Service
.
See the module docs for more details.
Implementations§
Source§impl<M> CallbackLayer<M>
impl<M> CallbackLayer<M>
Sourcepub fn new(make_handler: M) -> Selfwhere
M: MakeCallbackHandler,
pub fn new(make_handler: M) -> Selfwhere
M: MakeCallbackHandler,
Create a new CallbackLayer
using the given MakeCallbackHandler
.
Trait Implementations§
Source§impl<M: Clone> Clone for CallbackLayer<M>
impl<M: Clone> Clone for CallbackLayer<M>
Source§fn clone(&self) -> CallbackLayer<M>
fn clone(&self) -> CallbackLayer<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M: Debug> Debug for CallbackLayer<M>
impl<M: Debug> Debug for CallbackLayer<M>
Source§impl<S, M> Layer<S> for CallbackLayer<M>where
M: Clone,
impl<S, M> Layer<S> for CallbackLayer<M>where
M: Clone,
impl<M: Copy> Copy for CallbackLayer<M>
Auto Trait Implementations§
impl<M> Freeze for CallbackLayer<M>where
M: Freeze,
impl<M> RefUnwindSafe for CallbackLayer<M>where
M: RefUnwindSafe,
impl<M> Send for CallbackLayer<M>where
M: Send,
impl<M> Sync for CallbackLayer<M>where
M: Sync,
impl<M> Unpin for CallbackLayer<M>where
M: Unpin,
impl<M> UnwindSafe for CallbackLayer<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more