pub struct ResponseContext {
pub status: StatusCode,
pub elapsed: Duration,
}Expand description
Response context passed to ClientMiddleware::after_response.
Fields§
§status: StatusCodeFinal HTTP status code of the response (after any redirects/retries).
elapsed: DurationWall-clock duration of the entire send operation.
Auto Trait Implementations§
impl Freeze for ResponseContext
impl RefUnwindSafe for ResponseContext
impl Send for ResponseContext
impl Sync for ResponseContext
impl Unpin for ResponseContext
impl UnsafeUnpin for ResponseContext
impl UnwindSafe for ResponseContext
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