Struct google_api_proto::google::cloud::integrations::v1alpha::FailurePolicy
source · pub struct FailurePolicy {
pub retry_strategy: i32,
pub max_retries: i32,
pub interval_time: Option<Timestamp>,
}
Expand description
Policy that defines the task retry logic and failure type. If no
FailurePolicy is defined for a task, all its dependent tasks will not be
executed (i.e, a retry_strategy
of NONE will be applied).
Fields§
§retry_strategy: i32
Defines what happens to the task upon failure.
max_retries: i32
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
interval_time: Option<Timestamp>
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
Implementations§
source§impl FailurePolicy
impl FailurePolicy
sourcepub fn retry_strategy(&self) -> RetryStrategy
pub fn retry_strategy(&self) -> RetryStrategy
Returns the enum value of retry_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_retry_strategy(&mut self, value: RetryStrategy)
pub fn set_retry_strategy(&mut self, value: RetryStrategy)
Sets retry_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for FailurePolicy
impl Clone for FailurePolicy
source§fn clone(&self) -> FailurePolicy
fn clone(&self) -> FailurePolicy
Returns a copy 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 FailurePolicy
impl Debug for FailurePolicy
source§impl Default for FailurePolicy
impl Default for FailurePolicy
source§impl Message for FailurePolicy
impl Message for FailurePolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for FailurePolicy
impl PartialEq for FailurePolicy
source§fn eq(&self, other: &FailurePolicy) -> bool
fn eq(&self, other: &FailurePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FailurePolicy
impl StructuralPartialEq for FailurePolicy
Auto Trait Implementations§
impl Freeze for FailurePolicy
impl RefUnwindSafe for FailurePolicy
impl Send for FailurePolicy
impl Sync for FailurePolicy
impl Unpin for FailurePolicy
impl UnwindSafe for FailurePolicy
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request