pub struct MockWorkflowExecutor { /* private fields */ }Implementations§
Source§impl MockWorkflowExecutor
impl MockWorkflowExecutor
pub fn new() -> Self
pub fn with_leaf_outcome( self, leaf_id: impl Into<String>, outcome: MockLeafOutcome, ) -> Self
pub fn with_predicate_results( self, node_id: impl Into<String>, results: Vec<bool>, ) -> Self
pub fn with_generated_nodes( self, node_id: impl Into<String>, nodes: Vec<WorkflowNode>, ) -> Self
pub fn with_cancelled(self) -> Self
pub fn with_max_leaf_steps(self, max_leaf_steps: u32) -> Self
pub fn with_max_leaf_tokens(self, max_leaf_tokens: u64) -> Self
pub fn run( &mut self, spec: &WorkflowSpec, ) -> Result<WorkflowExecution, WorkflowExecutionError>
Trait Implementations§
Source§impl Clone for MockWorkflowExecutor
impl Clone for MockWorkflowExecutor
Source§fn clone(&self) -> MockWorkflowExecutor
fn clone(&self) -> MockWorkflowExecutor
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 MockWorkflowExecutor
impl Debug for MockWorkflowExecutor
Source§impl Default for MockWorkflowExecutor
impl Default for MockWorkflowExecutor
Source§fn default() -> MockWorkflowExecutor
fn default() -> MockWorkflowExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MockWorkflowExecutor
impl RefUnwindSafe for MockWorkflowExecutor
impl Send for MockWorkflowExecutor
impl Sync for MockWorkflowExecutor
impl Unpin for MockWorkflowExecutor
impl UnsafeUnpin for MockWorkflowExecutor
impl UnwindSafe for MockWorkflowExecutor
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