#[non_exhaustive]pub struct HttpAttemptSnapshot<'a> {
pub request: &'a Request,
pub status: StatusCode,
pub headers: &'a HeaderMap,
pub body: &'a [u8],
pub final_url: &'a Url,
pub html: Option<&'a SynchronizedHtml>,
}Expand description
A borrowed snapshot of one successful HTTP/HTML attempt.
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.request: &'a RequestRequest that produced the response.
status: StatusCodeFinal response status.
headers: &'a HeaderMapFinal response headers.
body: &'a [u8]Buffered response body.
final_url: &'a UrlFinal response URL after redirects.
html: Option<&'a SynchronizedHtml>Parsed HTML, when the response was parsed as HTML.
Auto Trait Implementations§
impl<'a> Freeze for HttpAttemptSnapshot<'a>
impl<'a> RefUnwindSafe for HttpAttemptSnapshot<'a>
impl<'a> Send for HttpAttemptSnapshot<'a>
impl<'a> Sync for HttpAttemptSnapshot<'a>
impl<'a> Unpin for HttpAttemptSnapshot<'a>
impl<'a> UnsafeUnpin for HttpAttemptSnapshot<'a>
impl<'a> UnwindSafe for HttpAttemptSnapshot<'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