pub struct Subject<'a> {
pub class: Class,
pub complexity: i64,
pub tier: Option<u8>,
pub node: Option<&'a str>,
pub lap: i64,
}Expand description
What a dispatch knows before it chooses. Every field is recorded on the run, so a replay reads these back rather than re-deriving them from a task that may since have been edited or rescanned.
Fields§
§class: Class§complexity: i64§tier: Option<u8>§node: Option<&'a str>The qualified workflow node this dispatch serves, or None for a task
dispatched on its own.
lap: i64Laps the unit had completed. 0 outside a workflow.
Trait Implementations§
impl<'a> Copy for Subject<'a>
impl<'a> StructuralPartialEq for Subject<'a>
Auto Trait Implementations§
impl<'a> Freeze for Subject<'a>
impl<'a> RefUnwindSafe for Subject<'a>
impl<'a> Send for Subject<'a>
impl<'a> Sync for Subject<'a>
impl<'a> Unpin for Subject<'a>
impl<'a> UnsafeUnpin for Subject<'a>
impl<'a> UnwindSafe for Subject<'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