pub struct RequestTracing {
pub log_all: bool,
}Fields§
§log_all: boolImplementations§
Source§impl RequestTracing
impl RequestTracing
pub fn new() -> RequestTracing
pub fn errors_only() -> RequestTracing
Trait Implementations§
Source§impl Default for RequestTracing
impl Default for RequestTracing
Source§fn default() -> RequestTracing
fn default() -> RequestTracing
Returns the “default value” for a type. Read more
Source§impl IMiddleware for RequestTracing
impl IMiddleware for RequestTracing
Source§fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut dyn IHttpContext,
) -> Pin<Box<dyn Future<Output = Result<ControlFlow<()>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RequestTracing: 'async_trait,
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut dyn IHttpContext,
) -> Pin<Box<dyn Future<Output = Result<ControlFlow<()>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RequestTracing: 'async_trait,
Process an HTTP request (before hook). Read more
Source§fn after<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut dyn IHttpContext,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RequestTracing: 'async_trait,
fn after<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut dyn IHttpContext,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
RequestTracing: 'async_trait,
Called after the final handler has executed. Read more
Auto Trait Implementations§
impl Freeze for RequestTracing
impl RefUnwindSafe for RequestTracing
impl Send for RequestTracing
impl Sync for RequestTracing
impl Unpin for RequestTracing
impl UnsafeUnpin for RequestTracing
impl UnwindSafe for RequestTracing
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