pub struct PyMiddlewareLayer<P> { /* private fields */ }
Expand description
Tower [Layer] implementation of Python middleware handling.
Middleware stored in the handler
attribute will be executed inside an async Tower middleware.
Implementations§
source§impl<P> PyMiddlewareLayer<P>
impl<P> PyMiddlewareLayer<P>
pub fn new(handler: PyMiddlewareHandler, locals: TaskLocals) -> Self
Trait Implementations§
source§impl<P: Clone> Clone for PyMiddlewareLayer<P>
impl<P: Clone> Clone for PyMiddlewareLayer<P>
source§fn clone(&self) -> PyMiddlewareLayer<P>
fn clone(&self) -> PyMiddlewareLayer<P>
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<P: Debug> Debug for PyMiddlewareLayer<P>
impl<P: Debug> Debug for PyMiddlewareLayer<P>
source§impl<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§
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