pub struct WorkflowDefinition { /* private fields */ }Expand description
Executable workflow definition and its root authority policy.
Implementations§
Source§impl WorkflowDefinition
impl WorkflowDefinition
Sourcepub fn new(
workflow: Arc<Workflow>,
budget: Budget,
capabilities: CapabilitySet,
) -> Self
pub fn new( workflow: Arc<Workflow>, budget: Budget, capabilities: CapabilitySet, ) -> Self
Registers a workflow with explicit root budget and authority.
Sourcepub fn with_journal(self, journal: Arc<dyn Journal>) -> Self
pub fn with_journal(self, journal: Arc<dyn Journal>) -> Self
Attaches a durable event journal to worker-created Runs.
Sourcepub const fn with_resume_policy(self, policy: WorkflowResumePolicy) -> Self
pub const fn with_resume_policy(self, policy: WorkflowResumePolicy) -> Self
Selects explicit interrupted-step recovery authority.
Sourcepub const fn with_failure_policy(self, policy: WorkflowFailurePolicy) -> Self
pub const fn with_failure_policy(self, policy: WorkflowFailurePolicy) -> Self
Selects how ordinary workflow execution failures affect the task.
Trait Implementations§
Source§impl Clone for WorkflowDefinition
impl Clone for WorkflowDefinition
Source§fn clone(&self) -> WorkflowDefinition
fn clone(&self) -> WorkflowDefinition
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 WorkflowDefinition
impl !UnwindSafe for WorkflowDefinition
impl Freeze for WorkflowDefinition
impl Send for WorkflowDefinition
impl Sync for WorkflowDefinition
impl Unpin for WorkflowDefinition
impl UnsafeUnpin for WorkflowDefinition
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