pub struct SignalWorkflowConfig {
pub namespace: String,
pub workflow_id: String,
pub workflow_pid: ParticipantPid,
pub declarations: Vec<SignalDeclaration>,
pub mode: ChannelMode,
}Expand description
Signal channel configuration for one workflow instance.
Fields§
§namespace: StringAion namespace that owns the workflow.
workflow_id: StringWorkflow identifier used in the signal channel name.
workflow_pid: ParticipantPidWorkflow process that receives delivered signals in its normal mailbox.
declarations: Vec<SignalDeclaration>Signal declarations supplied by the workflow definition.
mode: ChannelModePer-workflow signal channel durability mode.
Implementations§
Source§impl SignalWorkflowConfig
impl SignalWorkflowConfig
Sourcepub fn new(
namespace: impl Into<String>,
id: impl Into<String>,
pid: ParticipantPid,
declarations: Vec<SignalDeclaration>,
) -> Self
pub fn new( namespace: impl Into<String>, id: impl Into<String>, pid: ParticipantPid, declarations: Vec<SignalDeclaration>, ) -> Self
Creates an ephemeral signal workflow configuration.
Sourcepub const fn with_mode(self, mode: ChannelMode) -> Self
pub const fn with_mode(self, mode: ChannelMode) -> Self
Sets the per-workflow durability mode.
Trait Implementations§
Source§impl Clone for SignalWorkflowConfig
impl Clone for SignalWorkflowConfig
Source§fn clone(&self) -> SignalWorkflowConfig
fn clone(&self) -> SignalWorkflowConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SignalWorkflowConfig
impl !UnwindSafe for SignalWorkflowConfig
impl Freeze for SignalWorkflowConfig
impl Send for SignalWorkflowConfig
impl Sync for SignalWorkflowConfig
impl Unpin for SignalWorkflowConfig
impl UnsafeUnpin for SignalWorkflowConfig
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