pub struct PyMiddlewareLayer<P> { /* private fields */ }
Expand description
Tower [Layer] implementation of Python middleware handling.
Middleware stored in the handlers
attribute will be executed, in order,
inside an async Tower middleware.
Implementations
sourceimpl<P> PyMiddlewareLayer<P>
impl<P> PyMiddlewareLayer<P>
pub fn new(handlers: PyMiddlewares, locals: TaskLocals) -> Self
Trait Implementations
sourceimpl<P: Clone> Clone for PyMiddlewareLayer<P>
impl<P: Clone> Clone for PyMiddlewareLayer<P>
sourcefn clone(&self) -> PyMiddlewareLayer<P>
fn clone(&self) -> PyMiddlewareLayer<P>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<P: Debug> Debug for PyMiddlewareLayer<P>
impl<P: Debug> Debug for PyMiddlewareLayer<P>
sourceimpl<S, P> Layer<S> for PyMiddlewareLayer<P>where
PyMiddlewareException: IntoResponse<P>,
impl<S, P> Layer<S> for PyMiddlewareLayer<P>where
PyMiddlewareException: IntoResponse<P>,
Auto Trait Implementations
impl<P> !RefUnwindSafe for PyMiddlewareLayer<P>
impl<P> Send for PyMiddlewareLayer<P>where
P: Send,
impl<P> Sync for PyMiddlewareLayer<P>where
P: Sync,
impl<P> Unpin for PyMiddlewareLayer<P>where
P: Unpin,
impl<P> UnwindSafe for PyMiddlewareLayer<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more