pub struct FlowStepState { /* private fields */ }Expand description
Latest durable attempt for one logical step, used to reconstruct restart.
Implementations§
Source§impl FlowStepState
impl FlowStepState
Sourcepub const fn new(
node_id: NodeId,
execution: StepExecution,
context: Option<ExecutionContext>,
) -> FlowStepState
pub const fn new( node_id: NodeId, execution: StepExecution, context: Option<ExecutionContext>, ) -> FlowStepState
Constructs adapter-supplied latest logical-step state.
Repository implementations must verify that execution belongs to the
requested job instance and node_id before returning this value.
Sourcepub const fn execution(&self) -> &StepExecution
pub const fn execution(&self) -> &StepExecution
Borrows the latest step attempt.
Sourcepub const fn context(&self) -> Option<&ExecutionContext>
pub const fn context(&self) -> Option<&ExecutionContext>
Borrows committed step context when the adapter exposes it.
Trait Implementations§
Source§impl Clone for FlowStepState
impl Clone for FlowStepState
Source§fn clone(&self) -> FlowStepState
fn clone(&self) -> FlowStepState
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 FlowStepState
impl Debug for FlowStepState
impl Eq for FlowStepState
Source§impl PartialEq for FlowStepState
impl PartialEq for FlowStepState
impl StructuralPartialEq for FlowStepState
Auto Trait Implementations§
impl Freeze for FlowStepState
impl RefUnwindSafe for FlowStepState
impl Send for FlowStepState
impl Sync for FlowStepState
impl Unpin for FlowStepState
impl UnsafeUnpin for FlowStepState
impl UnwindSafe for FlowStepState
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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