#[non_exhaustive]pub struct CallInfo<'a> {
pub program: ProgramId,
pub workflow: WorkflowIx,
pub task: TaskIx,
pub function: &'a str,
pub workflow_id: &'a str,
pub task_id: &'a str,
pub channel: Option<&'a str>,
pub routing_bucket: Option<u8>,
pub loop_counter: Option<i64>,
pub element_index: Option<usize>,
}Expand description
Static facts about one call: where it sits in the program, and which iteration it is.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.program: ProgramIdThe program the call belongs to. It tells the indices of one build from another’s across a reload.
workflow: WorkflowIxThe workflow’s position in the program.
task: TaskIxThe task’s position in the program.
function: &'a strThe name the function was called by.
workflow_id: &'a strThe workflow’s id.
task_id: &'a strThe task’s id.
channel: Option<&'a str>The channel the run was started on; None when the run takes every
active workflow.
routing_bucket: Option<u8>The run’s routing bucket, 0..=99; None when the run was given
none, which every rollout admits. A function that starts a child run
passes it on, so the child keeps the caller’s rollout decision.
loop_counter: Option<i64>The loop counter, inside a workflow’s loop.
element_index: Option<usize>The element’s index, inside a for_each fan-out.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CallInfo<'a>
impl<'a> RefUnwindSafe for CallInfo<'a>
impl<'a> Send for CallInfo<'a>
impl<'a> Sync for CallInfo<'a>
impl<'a> Unpin for CallInfo<'a>
impl<'a> UnsafeUnpin for CallInfo<'a>
impl<'a> UnwindSafe for CallInfo<'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