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 more