pub struct AttemptFinishCommand { /* private fields */ }Expand description
Semantic command for attempt-finish lifecycle mutation.
Implementations§
Source§impl AttemptFinishCommand
impl AttemptFinishCommand
Sourcepub fn new(
sequence: u64,
run_id: RunId,
attempt_id: AttemptId,
outcome: AttemptOutcome,
timestamp: u64,
) -> Self
pub fn new( sequence: u64, run_id: RunId, attempt_id: AttemptId, outcome: AttemptOutcome, timestamp: u64, ) -> Self
Creates a new attempt-finish command.
Sourcepub fn attempt_id(&self) -> AttemptId
pub fn attempt_id(&self) -> AttemptId
Returns the attempt identifier.
Sourcepub fn outcome(&self) -> &AttemptOutcome
pub fn outcome(&self) -> &AttemptOutcome
Returns the attempt outcome.
Sourcepub fn result(&self) -> AttemptResultKind
pub fn result(&self) -> AttemptResultKind
Returns the canonical attempt result kind.
Trait Implementations§
Source§impl Clone for AttemptFinishCommand
impl Clone for AttemptFinishCommand
Source§fn clone(&self) -> AttemptFinishCommand
fn clone(&self) -> AttemptFinishCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 AttemptFinishCommand
impl Debug for AttemptFinishCommand
Source§impl PartialEq for AttemptFinishCommand
impl PartialEq for AttemptFinishCommand
impl Eq for AttemptFinishCommand
impl StructuralPartialEq for AttemptFinishCommand
Auto Trait Implementations§
impl Freeze for AttemptFinishCommand
impl RefUnwindSafe for AttemptFinishCommand
impl Send for AttemptFinishCommand
impl Sync for AttemptFinishCommand
impl Unpin for AttemptFinishCommand
impl UnsafeUnpin for AttemptFinishCommand
impl UnwindSafe for AttemptFinishCommand
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