pub struct WorkflowRunner {
pub id: WorkflowId,
pub dag: Dag<Step>,
pub journal: Arc<dyn Journal>,
}Fields§
§id: WorkflowId§dag: Dag<Step>§journal: Arc<dyn Journal>Implementations§
Source§impl WorkflowRunner
impl WorkflowRunner
Sourcepub fn new(id: WorkflowId, dag: Dag<Step>, journal: Arc<dyn Journal>) -> Self
pub fn new(id: WorkflowId, dag: Dag<Step>, journal: Arc<dyn Journal>) -> Self
Construct a runner from its three pieces. Equivalent to the struct literal but exposed as a stable constructor for callers (notably the Python wrapper) that don’t have access to crate- private types.
pub async fn run(&self, input: Value) -> Result<Value>
Auto Trait Implementations§
impl Freeze for WorkflowRunner
impl !RefUnwindSafe for WorkflowRunner
impl Send for WorkflowRunner
impl Sync for WorkflowRunner
impl Unpin for WorkflowRunner
impl UnsafeUnpin for WorkflowRunner
impl !UnwindSafe for WorkflowRunner
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