pub struct DispatchResponse {
pub workflow_id: WorkflowId,
pub ordinal: u64,
pub run_id: Option<RunId>,
pub completion_token: String,
pub outcome: Result<String, String>,
}Expand description
Wire response carrying one worker result back to the outbox.
Mirrors the completion half of the gRPC ActivityResult: the correlation ids
plus either a success result or a failure reason. LiminalCompletionSource
maps this onto the existing OutboxDeliveryCallback.
Fields§
§workflow_id: WorkflowIdWorkflow the completion belongs to.
ordinal: u64Pinned ordinal the completion correlates against.
run_id: Option<RunId>Run that issued the dispatch, echoed back for the run gate.
completion_token: StringOpaque execution-generation proof echoed from the request.
outcome: Result<String, String>Worker outcome: Ok(result) or Err(reason).
Trait Implementations§
Source§impl Clone for DispatchResponse
impl Clone for DispatchResponse
Source§fn clone(&self) -> DispatchResponse
fn clone(&self) -> DispatchResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchResponse
impl Debug for DispatchResponse
Source§impl<'de> Deserialize<'de> for DispatchResponse
impl<'de> Deserialize<'de> for DispatchResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DispatchResponse
Source§impl PartialEq for DispatchResponse
impl PartialEq for DispatchResponse
Source§impl SchemaValidate for DispatchResponse
impl SchemaValidate for DispatchResponse
Source§fn schema_metadata() -> SchemaMetadata
fn schema_metadata() -> SchemaMetadata
Returns this message type’s schema metadata.
Source§impl Serialize for DispatchResponse
impl Serialize for DispatchResponse
impl StructuralPartialEq for DispatchResponse
Auto Trait Implementations§
impl Freeze for DispatchResponse
impl RefUnwindSafe for DispatchResponse
impl Send for DispatchResponse
impl Sync for DispatchResponse
impl Unpin for DispatchResponse
impl UnsafeUnpin for DispatchResponse
impl UnwindSafe for DispatchResponse
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<M> EmbeddedChannelMessage for Mwhere
M: Serialize + SchemaValidate,
impl<M> EmbeddedChannelMessage for Mwhere
M: Serialize + SchemaValidate,
Source§fn schema_metadata(&self) -> SchemaMetadata
fn schema_metadata(&self) -> SchemaMetadata
Returns the compile-time schema metadata declared by the message type.
Source§impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
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