pub struct TimeoutMiddleware { /* private fields */ }Expand description
Timeout middleware - enforces time limits on handler execution Note: This is a placeholder - actual timeout enforcement happens in handler execution
Implementations§
Trait Implementations§
Source§impl Middleware for TimeoutMiddleware
impl Middleware for TimeoutMiddleware
Source§fn before<'life0, 'async_trait>(
&'life0 self,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn before<'life0, 'async_trait>(
&'life0 self,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process request before handler execution
Returns modified request or error
Auto Trait Implementations§
impl Freeze for TimeoutMiddleware
impl RefUnwindSafe for TimeoutMiddleware
impl Send for TimeoutMiddleware
impl Sync for TimeoutMiddleware
impl Unpin for TimeoutMiddleware
impl UnwindSafe for TimeoutMiddleware
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