Struct exc::AdaptLayer
pub struct AdaptLayer<Req, R>(/* private fields */);
Expand description
Layer for creating [Adapted
].
Trait Implementations§
§impl<Req, R> Debug for AdaptLayer<Req, R>
impl<Req, R> Debug for AdaptLayer<Req, R>
§impl<Req, R> Default for AdaptLayer<Req, R>
impl<Req, R> Default for AdaptLayer<Req, R>
§fn default() -> AdaptLayer<Req, R>
fn default() -> AdaptLayer<Req, R>
Returns the “default value” for a type. Read more
§impl<S, Req, R> Layer<S> for AdaptLayer<Req, R>
impl<S, Req, R> Layer<S> for AdaptLayer<Req, R>
§fn layer(&self, inner: S) -> <AdaptLayer<Req, R> as Layer<S>>::Service
fn layer(&self, inner: S) -> <AdaptLayer<Req, R> as Layer<S>>::Service
Wrap the given service with the middleware, returning a new service
that has been decorated with the middleware.
Auto Trait Implementations§
impl<Req, R> RefUnwindSafe for AdaptLayer<Req, R>
impl<Req, R> Send for AdaptLayer<Req, R>
impl<Req, R> Sync for AdaptLayer<Req, R>
impl<Req, R> Unpin for AdaptLayer<Req, R>
impl<Req, R> UnwindSafe for AdaptLayer<Req, R>
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