#[non_exhaustive]pub struct RetryPhase {
pub total_attempts: i64,
pub backoff_mode: BackoffMode,
pub attempts: Vec<RetryAttempt>,
/* private fields */
}
Expand description
RetryPhase contains the retry attempts and the metadata for initiating a new attempt.
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.total_attempts: i64
Output only. The number of attempts that have been made.
backoff_mode: BackoffMode
Output only. The pattern of how the wait time of the retry attempt is calculated.
attempts: Vec<RetryAttempt>
Output only. Detail of a retry action.
Implementations§
Source§impl RetryPhase
impl RetryPhase
pub fn new() -> Self
Sourcepub fn set_total_attempts<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_attempts<T: Into<i64>>(self, v: T) -> Self
Sets the value of total_attempts.
Sourcepub fn set_backoff_mode<T: Into<BackoffMode>>(self, v: T) -> Self
pub fn set_backoff_mode<T: Into<BackoffMode>>(self, v: T) -> Self
Sets the value of backoff_mode.
Sourcepub fn set_attempts<T, V>(self, v: T) -> Self
pub fn set_attempts<T, V>(self, v: T) -> Self
Sets the value of attempts.
Trait Implementations§
Source§impl Clone for RetryPhase
impl Clone for RetryPhase
Source§fn clone(&self) -> RetryPhase
fn clone(&self) -> RetryPhase
Returns a duplicate of the value. Read more
1.0.0 · 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 RetryPhase
impl Debug for RetryPhase
Source§impl Default for RetryPhase
impl Default for RetryPhase
Source§fn default() -> RetryPhase
fn default() -> RetryPhase
Returns the “default value” for a type. Read more
Source§impl PartialEq for RetryPhase
impl PartialEq for RetryPhase
impl StructuralPartialEq for RetryPhase
Auto Trait Implementations§
impl Freeze for RetryPhase
impl RefUnwindSafe for RetryPhase
impl Send for RetryPhase
impl Sync for RetryPhase
impl Unpin for RetryPhase
impl UnwindSafe for RetryPhase
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