Enum google_api_proto::google::cloud::tasks::v2beta2::retry_config::NumAttempts
source · pub enum NumAttempts {
MaxAttempts(i32),
UnlimitedAttempts(bool),
}
Expand description
Number of attempts per task.
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as task_retry_limit in queue.yaml/xml.
Variants§
MaxAttempts(i32)
The maximum number of attempts for a task.
Cloud Tasks will attempt the task max_attempts
times (that
is, if the first attempt fails, then there will be
max_attempts - 1
retries). Must be > 0.
UnlimitedAttempts(bool)
If true, then the number of attempts is unlimited.
Implementations§
source§impl NumAttempts
impl NumAttempts
sourcepub fn merge(
field: &mut Option<NumAttempts>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<NumAttempts>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for NumAttempts
impl Clone for NumAttempts
source§fn clone(&self) -> NumAttempts
fn clone(&self) -> NumAttempts
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 NumAttempts
impl Debug for NumAttempts
source§impl PartialEq for NumAttempts
impl PartialEq for NumAttempts
source§fn eq(&self, other: &NumAttempts) -> bool
fn eq(&self, other: &NumAttempts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NumAttempts
impl StructuralPartialEq for NumAttempts
Auto Trait Implementations§
impl Freeze for NumAttempts
impl RefUnwindSafe for NumAttempts
impl Send for NumAttempts
impl Sync for NumAttempts
impl Unpin for NumAttempts
impl UnwindSafe for NumAttempts
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