pub struct TimeoutResponseLayer { /* private fields */ }Expand description
Tower layer that maps elapsed inner work to an HTTP timeout response.
This is an HTTP response-mapping layer, not Tower’s error-returning timeout
layer. It keeps the service error type unchanged and turns elapsed requests
into a concrete 408 response.
Trait Implementations§
Source§impl Clone for TimeoutResponseLayer
impl Clone for TimeoutResponseLayer
Source§fn clone(&self) -> TimeoutResponseLayer
fn clone(&self) -> TimeoutResponseLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeoutResponseLayer
Source§impl Debug for TimeoutResponseLayer
impl Debug for TimeoutResponseLayer
Auto Trait Implementations§
impl Freeze for TimeoutResponseLayer
impl RefUnwindSafe for TimeoutResponseLayer
impl Send for TimeoutResponseLayer
impl Sync for TimeoutResponseLayer
impl Unpin for TimeoutResponseLayer
impl UnsafeUnpin for TimeoutResponseLayer
impl UnwindSafe for TimeoutResponseLayer
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