pub struct AttemptEvent {
pub url: String,
pub method: Method,
pub attempt: u32,
pub max_attempts: u32,
}Expand description
One attempt about to start, passed to ClientConfig::on_attempt. url has configured
and per-request secret values replaced by [redacted] and any query or userinfo removed.
Fields§
§url: String§method: Method§attempt: u32Attempt number about to run (1 = the first try, 2 = the first retry).
max_attempts: u32Most attempts the policy allows for this call.
Trait Implementations§
Source§impl Clone for AttemptEvent
impl Clone for AttemptEvent
Auto Trait Implementations§
impl Freeze for AttemptEvent
impl RefUnwindSafe for AttemptEvent
impl Send for AttemptEvent
impl Sync for AttemptEvent
impl Unpin for AttemptEvent
impl UnsafeUnpin for AttemptEvent
impl UnwindSafe for AttemptEvent
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