pub enum DispatchKind<'a> {
InlineBuiltin {
workflow_id: &'a str,
task_id: &'a str,
function: &'a str,
},
HostTask {
workflow_id: &'a str,
task_id: &'a str,
function: &'a str,
},
LoopStep {
workflow_id: &'a str,
iteration: u64,
},
ForEachElement {
workflow_id: &'a str,
task_id: &'a str,
index: usize,
},
}Expand description
The kind of step about to be dispatched when charging a task budget or
consulting a RunAccountant.
Variants§
InlineBuiltin
An inline built-in task (map, validation, filter, log, etc.).
Fields
HostTask
A host-registered async function (Call, Parse, or Publish).
Fields
LoopStep
One sweep of a workflow loop.
ForEachElement
One element of a for_each fan-out.
Trait Implementations§
Source§impl<'a> Clone for DispatchKind<'a>
impl<'a> Clone for DispatchKind<'a>
impl<'a> Copy for DispatchKind<'a>
Source§impl<'a> Debug for DispatchKind<'a>
impl<'a> Debug for DispatchKind<'a>
impl<'a> Eq for DispatchKind<'a>
Source§impl<'a> Hash for DispatchKind<'a>
impl<'a> Hash for DispatchKind<'a>
Source§impl<'a> PartialEq for DispatchKind<'a>
impl<'a> PartialEq for DispatchKind<'a>
Source§impl<'a> Serialize for DispatchKind<'a>
impl<'a> Serialize for DispatchKind<'a>
impl<'a> StructuralPartialEq for DispatchKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for DispatchKind<'a>
impl<'a> RefUnwindSafe for DispatchKind<'a>
impl<'a> Send for DispatchKind<'a>
impl<'a> Sync for DispatchKind<'a>
impl<'a> Unpin for DispatchKind<'a>
impl<'a> UnsafeUnpin for DispatchKind<'a>
impl<'a> UnwindSafe for DispatchKind<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.