pub struct Workflow<C, Input, M = ()> { /* private fields */ }Expand description
A built workflow that can be executed.
Implementations§
Source§impl<C, Input, M> Workflow<C, Input, M>
impl<C, Input, M> Workflow<C, Input, M>
Sourcepub fn workflow_id(&self) -> &str
pub fn workflow_id(&self) -> &str
Get the workflow ID.
Sourcepub fn definition_hash(&self) -> &str
pub fn definition_hash(&self) -> &str
Get the definition hash.
This hash is computed from the workflow’s continuation structure and serves as a version identifier. It can be used to detect when a serialized workflow state was created with a different workflow definition.
Sourcepub fn context(&self) -> &WorkflowContext<C, M>
pub fn context(&self) -> &WorkflowContext<C, M>
Get a reference to the context of this workflow.
Sourcepub fn continuation(&self) -> &WorkflowContinuation
pub fn continuation(&self) -> &WorkflowContinuation
Get a reference to the continuation of this workflow.
Auto Trait Implementations§
impl<C, Input, M> Freeze for Workflow<C, Input, M>
impl<C, Input, M = ()> !RefUnwindSafe for Workflow<C, Input, M>
impl<C, Input, M> Send for Workflow<C, Input, M>
impl<C, Input, M> Sync for Workflow<C, Input, M>
impl<C, Input, M> Unpin for Workflow<C, Input, M>where
Input: Unpin,
impl<C, Input, M> UnsafeUnpin for Workflow<C, Input, M>
impl<C, Input, M = ()> !UnwindSafe for Workflow<C, Input, M>
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