pub struct RequestResult<'a> {
pub status: Option<StatusCode>,
pub duration: Duration,
pub error: Option<&'a Error>,
pub from_cache: bool,
pub retryable: bool,
pub retry_after: Option<u64>,
}Expand description
How one HTTP request turned out.
Fields§
§status: Option<StatusCode>What Fizzy answered, or None when nothing came back at all.
duration: DurationHow long Fizzy took to answer, before the body was read.
error: Option<&'a Error>What this request failed with, whether or not the SDK went on to resend it.
from_cache: boolThe body came out of the response cache: Fizzy answered 304 and the SDK read the entry it was holding.
retryable: boolThe SDK would resend this, given an attempt to spare.
retry_after: Option<u64>The seconds Retry-After named, on the statuses that carry one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RequestResult<'a>
impl<'a> !UnwindSafe for RequestResult<'a>
impl<'a> Freeze for RequestResult<'a>
impl<'a> Send for RequestResult<'a>
impl<'a> Sync for RequestResult<'a>
impl<'a> Unpin for RequestResult<'a>
impl<'a> UnsafeUnpin for RequestResult<'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