pub struct CompiledWorkflow { /* private fields */ }Implementations§
Source§impl CompiledWorkflow
impl CompiledWorkflow
pub fn definition(&self) -> &WorkflowDefinition
pub fn into_definition(self) -> WorkflowDefinition
pub fn state(&self, id: &str) -> Option<&GraphState>
pub fn transitions( &self, from: &str, event: TransitionEvent, ) -> impl Iterator<Item = &Transition>
pub fn outgoing(&self, from: &str) -> impl Iterator<Item = &Transition>
pub fn predecessors(&self, state: &str) -> &BTreeSet<String>
pub fn reachable(&self) -> &BTreeSet<String>
pub fn select_transition<'a>( &'a self, from: &str, event: TransitionEvent, payload: &Value, ) -> Result<Option<&'a Transition>, Error>
Trait Implementations§
Source§impl Clone for CompiledWorkflow
impl Clone for CompiledWorkflow
Source§fn clone(&self) -> CompiledWorkflow
fn clone(&self) -> CompiledWorkflow
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 Forget for CompiledWorkflow
impl Freeze for CompiledWorkflow
impl Move for CompiledWorkflow
impl RefUnwindSafe for CompiledWorkflow
impl Send for CompiledWorkflow
impl Sync for CompiledWorkflow
impl Unpin for CompiledWorkflow
impl UnsafeUnpin for CompiledWorkflow
impl UnwindSafe for CompiledWorkflow
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