pub struct ResponseRetryContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> ResponseRetryContext<'a>
impl<'a> ResponseRetryContext<'a>
pub fn new( response_status: StatusCode, retry_count: u32, is_body_replayable: bool, request_method: &'a Method, retry_after: Option<RetryAfter>, ) -> Self
pub fn response_status(&self) -> StatusCode
pub fn retry_count(&self) -> u32
pub fn is_body_replayable(&self) -> bool
pub fn request_method(&self) -> &'a Method
pub fn retry_after(&self) -> Option<RetryAfter>
Auto Trait Implementations§
impl<'a> Freeze for ResponseRetryContext<'a>
impl<'a> RefUnwindSafe for ResponseRetryContext<'a>
impl<'a> Send for ResponseRetryContext<'a>
impl<'a> Sync for ResponseRetryContext<'a>
impl<'a> Unpin for ResponseRetryContext<'a>
impl<'a> UnsafeUnpin for ResponseRetryContext<'a>
impl<'a> UnwindSafe for ResponseRetryContext<'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