pub struct StepMethodInvocationState {
pub phase: i32,
pub pending_reason: i32,
pub attempt: i32,
pub pending_since_time: Option<Timestamp>,
pub attempt_started_time: Option<Timestamp>,
pub backoff_fires_at_time: Option<Timestamp>,
}Expand description
The current invocation of one Step method: its phase, its attempt, and why a pending attempt waits.
Requires Server protocol version 4 or later.
Fields§
§phase: i32§pending_reason: i32Set only in the pending phase.
attempt: i32The pending or running attempt, or in the backoff phase the next one.
pending_since_time: Option<Timestamp>When the current attempt became pending. A queued attempt keeps this time when a Worker declines it.
attempt_started_time: Option<Timestamp>When a Worker received the running attempt; unset in other phases.
backoff_fires_at_time: Option<Timestamp>When the backoff ends and the next attempt becomes pending; unset in other phases.
Implementations§
Source§impl StepMethodInvocationState
impl StepMethodInvocationState
Sourcepub fn phase(&self) -> StepMethodInvocationPhase
pub fn phase(&self) -> StepMethodInvocationPhase
Returns the enum value of phase, or the default if the field is set to an invalid enum value.
Sourcepub fn set_phase(&mut self, value: StepMethodInvocationPhase)
pub fn set_phase(&mut self, value: StepMethodInvocationPhase)
Sets phase to the provided enum value.
Sourcepub fn pending_reason(&self) -> StepMethodPendingReason
pub fn pending_reason(&self) -> StepMethodPendingReason
Returns the enum value of pending_reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_pending_reason(&mut self, value: StepMethodPendingReason)
pub fn set_pending_reason(&mut self, value: StepMethodPendingReason)
Sets pending_reason to the provided enum value.
Trait Implementations§
Source§impl Clone for StepMethodInvocationState
impl Clone for StepMethodInvocationState
impl Copy for StepMethodInvocationState
Source§impl Debug for StepMethodInvocationState
impl Debug for StepMethodInvocationState
Source§impl Default for StepMethodInvocationState
impl Default for StepMethodInvocationState
impl Eq for StepMethodInvocationState
Source§impl Hash for StepMethodInvocationState
impl Hash for StepMethodInvocationState
Source§impl Message for StepMethodInvocationState
impl Message for StepMethodInvocationState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.impl StructuralPartialEq for StepMethodInvocationState
Auto Trait Implementations§
impl Forget for StepMethodInvocationState
impl Freeze for StepMethodInvocationState
impl RefUnwindSafe for StepMethodInvocationState
impl Send for StepMethodInvocationState
impl Sync for StepMethodInvocationState
impl Unpin for StepMethodInvocationState
impl UnsafeUnpin for StepMethodInvocationState
impl UnwindSafe for StepMethodInvocationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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>
T in a tonic::Request