pub struct PyMiddlewareHandler {
pub name: String,
pub func: PyObject,
pub is_coroutine: bool,
}
Expand description
A Python middleware handler function representation.
The Python business logic implementation needs to carry some information to be executed properly like if it is a coroutine.
Fields§
§name: String
§func: PyObject
§is_coroutine: bool
Implementations§
Trait Implementations§
source§impl Clone for PyMiddlewareHandler
impl Clone for PyMiddlewareHandler
source§fn clone(&self) -> PyMiddlewareHandler
fn clone(&self) -> PyMiddlewareHandler
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PyMiddlewareHandler
impl Send for PyMiddlewareHandler
impl Sync for PyMiddlewareHandler
impl Unpin for PyMiddlewareHandler
impl UnwindSafe for PyMiddlewareHandler
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.