#[non_exhaustive]pub struct RetryAttempt {
pub attempt: i64,
pub wait: Option<Duration>,
pub state: RepairState,
pub state_desc: String,
/* private fields */
}
Expand description
RetryAttempt represents an action of retrying the failed Cloud Deploy job.
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.attempt: i64
Output only. The index of this retry attempt.
wait: Option<Duration>
Output only. How long the operation will be paused.
state: RepairState
Output only. Valid state of this retry action.
state_desc: String
Output only. Description of the state of the Retry.
Implementations§
Source§impl RetryAttempt
impl RetryAttempt
pub fn new() -> Self
Sourcepub fn set_attempt<T: Into<i64>>(self, v: T) -> Self
pub fn set_attempt<T: Into<i64>>(self, v: T) -> Self
Sets the value of attempt.
Sourcepub fn set_or_clear_wait<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_wait<T>(self, v: Option<T>) -> Self
Sets or clears the value of wait.
Sourcepub fn set_state<T: Into<RepairState>>(self, v: T) -> Self
pub fn set_state<T: Into<RepairState>>(self, v: T) -> Self
Sets the value of state.
Sourcepub fn set_state_desc<T: Into<String>>(self, v: T) -> Self
pub fn set_state_desc<T: Into<String>>(self, v: T) -> Self
Sets the value of state_desc.
Trait Implementations§
Source§impl Clone for RetryAttempt
impl Clone for RetryAttempt
Source§fn clone(&self) -> RetryAttempt
fn clone(&self) -> RetryAttempt
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 RetryAttempt
impl Debug for RetryAttempt
Source§impl Default for RetryAttempt
impl Default for RetryAttempt
Source§fn default() -> RetryAttempt
fn default() -> RetryAttempt
Returns the “default value” for a type. Read more
Source§impl Message for RetryAttempt
impl Message for RetryAttempt
Source§impl PartialEq for RetryAttempt
impl PartialEq for RetryAttempt
impl StructuralPartialEq for RetryAttempt
Auto Trait Implementations§
impl Freeze for RetryAttempt
impl RefUnwindSafe for RetryAttempt
impl Send for RetryAttempt
impl Sync for RetryAttempt
impl Unpin for RetryAttempt
impl UnwindSafe for RetryAttempt
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