pub struct ResponseMeta<'a> {
pub status: StatusCode,
pub headers: &'a HeaderMap,
}Expand description
A response, as a throttle and a policy see it.
Fields§
§status: StatusCodeThe status.
headers: &'a HeaderMapThe headers.
Implementations§
Source§impl ResponseMeta<'_>
impl ResponseMeta<'_>
Sourcepub fn retry_after(&self) -> Option<&str>
pub fn retry_after(&self) -> Option<&str>
The Retry-After header, when present and valid UTF-8.
Trait Implementations§
Source§impl<'a> Clone for ResponseMeta<'a>
impl<'a> Clone for ResponseMeta<'a>
impl<'a> Copy for ResponseMeta<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResponseMeta<'a>
impl<'a> RefUnwindSafe for ResponseMeta<'a>
impl<'a> Send for ResponseMeta<'a>
impl<'a> Sync for ResponseMeta<'a>
impl<'a> Unpin for ResponseMeta<'a>
impl<'a> UnsafeUnpin for ResponseMeta<'a>
impl<'a> UnwindSafe for ResponseMeta<'a>
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