pub struct ExecutionMark {
pub module_id: Option<String>,
pub step_idx: Option<u32>,
pub epoch: Option<u64>,
pub stay_current_step: bool,
pub node_id: Option<String>,
}Expand description
Strongly-typed distributed ExecutionMark for ModuleProcessor. This avoids generic maps and encodes key fields explicitly.
Fields§
§module_id: Option<String>§step_idx: Option<u32>Legacy linear step index (kept for backward compat with in-flight queue messages).
When node_id is set, step_idx is ignored by ModuleDagProcessor.
epoch: Option<u64>§stay_current_step: boolWhether to retry on the current node/step without advancing.
node_id: Option<String>DAG node identifier. When set, this is the primary routing key for ModuleDagProcessor.
Replaces step_idx-based routing in the new queue-backed DAG engine.
IMPORTANT: must be the last field to maintain msgpack array positional compat with old messages.
Implementations§
Source§impl ExecutionMark
impl ExecutionMark
pub fn with_module_id(self, mid: impl AsRef<str>) -> Self
pub fn with_step_idx(self, idx: u32) -> Self
pub fn with_epoch(self, epoch: u64) -> Self
pub fn with_stay_current_step(self, stay: bool) -> Self
pub fn with_node_id(self, id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ExecutionMark
impl Clone for ExecutionMark
Source§fn clone(&self) -> ExecutionMark
fn clone(&self) -> ExecutionMark
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 ExecutionMark
impl Debug for ExecutionMark
Source§impl Default for ExecutionMark
impl Default for ExecutionMark
Source§fn default() -> ExecutionMark
fn default() -> ExecutionMark
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionMark
impl<'de> Deserialize<'de> for ExecutionMark
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionMark
impl RefUnwindSafe for ExecutionMark
impl Send for ExecutionMark
impl Sync for ExecutionMark
impl Unpin for ExecutionMark
impl UnsafeUnpin for ExecutionMark
impl UnwindSafe for ExecutionMark
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more