#[non_exhaustive]pub struct RetryConfig {
pub time_to_wait: Duration,
pub max_retries: u32,
}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.time_to_wait: DurationHow much time to wait when an allocation fails before trying a new one.
max_retries: u32How many times to try to allocate for a single alloc/alloc_zeroed/realloc call, not including the first one.
Implementations§
Source§impl RetryConfig
impl RetryConfig
pub const fn new_v1(time_to_wait: Duration, max_retries: u32) -> RetryConfig
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
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