#[non_exhaustive]pub struct AttemptOverrides {
pub proxy_kind: Option<ProxyKind>,
pub user_agent_profile: Option<String>,
pub backoff: Option<Duration>,
}Expand description
Overrides carried to the next attempt of the same request.
Overrides live in engine memory keyed by request unique key and do not survive restarts.
§Examples
use millipede_core::retry_strategy::AttemptOverrides;
use std::time::Duration;
let mut overrides = AttemptOverrides::default();
overrides.backoff = Some(Duration::from_millis(250));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.proxy_kind: Option<ProxyKind>Proxy bucket requested for the next attempt.
user_agent_profile: Option<String>User-agent profile requested for the next attempt.
backoff: Option<Duration>Delay before the next attempt begins.
Trait Implementations§
Source§impl Clone for AttemptOverrides
impl Clone for AttemptOverrides
Source§fn clone(&self) -> AttemptOverrides
fn clone(&self) -> AttemptOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttemptOverrides
impl Debug for AttemptOverrides
Source§impl Default for AttemptOverrides
impl Default for AttemptOverrides
Source§fn default() -> AttemptOverrides
fn default() -> AttemptOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttemptOverrides
impl RefUnwindSafe for AttemptOverrides
impl Send for AttemptOverrides
impl Sync for AttemptOverrides
impl Unpin for AttemptOverrides
impl UnsafeUnpin for AttemptOverrides
impl UnwindSafe for AttemptOverrides
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