pub struct WorkflowSignal {
pub signal_id: WorkflowSignalId,
pub checkpoint_id: CheckpointId,
pub name: WorkflowSignalName,
pub payload: Value,
}Expand description
Idempotent external event targeted at one workflow checkpoint.
Fields§
§signal_id: WorkflowSignalIdStable publication identity.
checkpoint_id: CheckpointIdTarget workflow checkpoint.
name: WorkflowSignalNameSignal name awaited by the workflow definition.
payload: ValueCanonical payload delivered as the wait-node output.
Implementations§
Source§impl WorkflowSignal
impl WorkflowSignal
Sourcepub fn new(
checkpoint_id: CheckpointId,
name: WorkflowSignalName,
payload: Value,
) -> Result<Self, WorkflowWaitError>
pub fn new( checkpoint_id: CheckpointId, name: WorkflowSignalName, payload: Value, ) -> Result<Self, WorkflowWaitError>
Creates a signal with a generated idempotency identity.
§Errors
Rejects payloads larger than the durable limit.
Sourcepub fn with_id(
signal_id: WorkflowSignalId,
checkpoint_id: CheckpointId,
name: WorkflowSignalName,
payload: Value,
) -> Result<Self, WorkflowWaitError>
pub fn with_id( signal_id: WorkflowSignalId, checkpoint_id: CheckpointId, name: WorkflowSignalName, payload: Value, ) -> Result<Self, WorkflowWaitError>
Creates a signal with a caller-supplied idempotency identity.
§Errors
Rejects payloads larger than the durable limit.
Trait Implementations§
Source§impl Clone for WorkflowSignal
impl Clone for WorkflowSignal
Source§fn clone(&self) -> WorkflowSignal
fn clone(&self) -> WorkflowSignal
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 WorkflowSignal
impl Debug for WorkflowSignal
Source§impl PartialEq for WorkflowSignal
impl PartialEq for WorkflowSignal
impl StructuralPartialEq for WorkflowSignal
Auto Trait Implementations§
impl Freeze for WorkflowSignal
impl RefUnwindSafe for WorkflowSignal
impl Send for WorkflowSignal
impl Sync for WorkflowSignal
impl Unpin for WorkflowSignal
impl UnsafeUnpin for WorkflowSignal
impl UnwindSafe for WorkflowSignal
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