#[non_exhaustive]pub struct UtcResponse<'a> {
pub sent_us: u64,
pub received_us: u64,
pub date: Option<&'a str>,
pub body: &'a [u8],
}Expand description
A UTCTiming response as the caller observed it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sent_us: u64Monotonic microseconds when the request was sent.
received_us: u64Monotonic microseconds when the first response byte arrived.
date: Option<&'a str>The Date header (the time of an http-head exchange).
body: &'a [u8]The body, empty for a HEAD.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for UtcResponse<'a>
impl<'a> Clone for UtcResponse<'a>
impl<'a> Copy for UtcResponse<'a>
Source§impl<'a> Debug for UtcResponse<'a>
impl<'a> Debug for UtcResponse<'a>
impl<'a> Eq for UtcResponse<'a>
Source§impl<'a> PartialEq for UtcResponse<'a>
impl<'a> PartialEq for UtcResponse<'a>
impl<'a> StructuralPartialEq for UtcResponse<'a>
Auto Trait Implementations§
impl<'a> Freeze for UtcResponse<'a>
impl<'a> RefUnwindSafe for UtcResponse<'a>
impl<'a> Send for UtcResponse<'a>
impl<'a> Sync for UtcResponse<'a>
impl<'a> Unpin for UtcResponse<'a>
impl<'a> UnsafeUnpin for UtcResponse<'a>
impl<'a> UnwindSafe for UtcResponse<'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