pub struct StepExecutionRecord { /* private fields */ }Implementations§
Source§impl StepExecutionRecord
impl StepExecutionRecord
pub fn pending() -> Self
pub fn pending_iteration(iteration: StepIteration) -> Self
pub fn pending_state_iteration(state_iteration: StateIteration) -> Self
pub fn pending_coordinates( state_iteration: StateIteration, iteration: StepIteration, ) -> Self
pub fn state_visit(&self) -> StateVisit
pub fn with_state_visit(self, state_visit: StateVisit) -> Self
pub fn state_iteration(&self) -> StateIteration
pub fn status(&self) -> StepStatus
pub fn iteration(&self) -> StepIteration
pub fn attempt(&self) -> StepAttempt
pub fn lease(&self) -> Option<&StepLease>
pub fn effective_lease_expires_at(&self) -> Option<OffsetDateTime>
pub fn output(&self) -> &StepOutput
pub fn error_message(&self) -> Option<&StepErrorMessage>
pub fn claimed_role(&self) -> Option<&RoleId>
pub fn budget_reservation_id(&self) -> Option<&BudgetReservationId>
pub fn can_be_started_at(&self, now: OffsetDateTime) -> bool
pub fn has_live_lease_at(&self, now: OffsetDateTime) -> bool
pub fn with_started( self, lease: StepLease, attempt: StepAttempt, claimed_role: Option<RoleId>, ) -> Self
pub fn with_budget_reservation( self, reservation_id: Option<BudgetReservationId>, ) -> Self
pub fn with_result(self, result: StepResult) -> Self
Sourcepub fn carried(
output: StepOutput,
source: SourceRecordRef,
state_iteration: StateIteration,
state_visit: StateVisit,
) -> Self
pub fn carried( output: StepOutput, source: SourceRecordRef, state_iteration: StateIteration, state_visit: StateVisit, ) -> Self
A completed record whose work was done in another instance.
Built rather than folded from a start and a result, because there was no start here: nothing was claimed, nothing was leased, and the attempt is the first this instance would make. The source is what keeps the distinction readable afterwards.
Sourcepub const fn carried_from(&self) -> Option<&SourceRecordRef>
pub const fn carried_from(&self) -> Option<&SourceRecordRef>
Where this record’s work happened, when it was not here.
Trait Implementations§
Source§impl Clone for StepExecutionRecord
impl Clone for StepExecutionRecord
Source§impl Debug for StepExecutionRecord
impl Debug for StepExecutionRecord
Source§impl<'de> Deserialize<'de> for StepExecutionRecord
impl<'de> Deserialize<'de> for StepExecutionRecord
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
impl Eq for StepExecutionRecord
Source§impl PartialEq for StepExecutionRecord
impl PartialEq for StepExecutionRecord
Source§impl Serialize for StepExecutionRecord
impl Serialize for StepExecutionRecord
impl StructuralPartialEq for StepExecutionRecord
Auto Trait Implementations§
impl Freeze for StepExecutionRecord
impl RefUnwindSafe for StepExecutionRecord
impl Send for StepExecutionRecord
impl Sync for StepExecutionRecord
impl Unpin for StepExecutionRecord
impl UnsafeUnpin for StepExecutionRecord
impl UnwindSafe for StepExecutionRecord
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