pub struct USDTMiddleware { /* private fields */ }Expand description
Trace utility for incoming requests and responses.
§Examples
let mut app = tide::new();
app.with(tide_trace::USDTMiddleware::new());Implementations§
Trait Implementations§
Source§impl Clone for USDTMiddleware
impl Clone for USDTMiddleware
Source§fn clone(&self) -> USDTMiddleware
fn clone(&self) -> USDTMiddleware
Returns a duplicate 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 Debug for USDTMiddleware
impl Debug for USDTMiddleware
Source§impl<State: Clone + Send + Sync + 'static> Middleware<State> for USDTMiddleware
impl<State: Clone + Send + Sync + 'static> Middleware<State> for USDTMiddleware
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asynchronously handle the request, and return a response.
Auto Trait Implementations§
impl Freeze for USDTMiddleware
impl RefUnwindSafe for USDTMiddleware
impl Send for USDTMiddleware
impl Sync for USDTMiddleware
impl Unpin for USDTMiddleware
impl UnwindSafe for USDTMiddleware
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