pub struct WaitForHistoryEventResponse {
pub event_available: bool,
pub available_internal_event_id: i64,
pub flow_status: i32,
}Fields§
§event_available: boolTrue when the run has an event whose ID is next_internal_event_id or larger. False when the run closed before it recorded such an event.
available_internal_event_id: i64The ID of the newest history event of the run when the call returned.
It is not the first event at or after next_internal_event_id: it is the last event the run has recorded. Use it to find the newest history page, for example by calling with next_internal_event_id set to 1. The newest event always belongs to the current run attempt. A GetHistoryEvents read of an older run attempt can end before this ID.
It is set when event_available is false too. Then it is the ID of the last event of the closed run.
flow_status: i32Implementations§
Source§impl WaitForHistoryEventResponse
impl WaitForHistoryEventResponse
Sourcepub fn flow_status(&self) -> FlowStatus
pub fn flow_status(&self) -> FlowStatus
Returns the enum value of flow_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_flow_status(&mut self, value: FlowStatus)
pub fn set_flow_status(&mut self, value: FlowStatus)
Sets flow_status to the provided enum value.
Trait Implementations§
Source§impl Clone for WaitForHistoryEventResponse
impl Clone for WaitForHistoryEventResponse
impl Copy for WaitForHistoryEventResponse
Source§impl Debug for WaitForHistoryEventResponse
impl Debug for WaitForHistoryEventResponse
impl Eq for WaitForHistoryEventResponse
Source§impl Hash for WaitForHistoryEventResponse
impl Hash for WaitForHistoryEventResponse
Source§impl Message for WaitForHistoryEventResponse
impl Message for WaitForHistoryEventResponse
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 WaitForHistoryEventResponse
Auto Trait Implementations§
impl Forget for WaitForHistoryEventResponse
impl Freeze for WaitForHistoryEventResponse
impl RefUnwindSafe for WaitForHistoryEventResponse
impl Send for WaitForHistoryEventResponse
impl Sync for WaitForHistoryEventResponse
impl Unpin for WaitForHistoryEventResponse
impl UnsafeUnpin for WaitForHistoryEventResponse
impl UnwindSafe for WaitForHistoryEventResponse
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