pub struct AttemptHistoryEntry { /* private fields */ }Expand description
A deterministic attempt lineage record for a run.
Implementations§
Source§impl AttemptHistoryEntry
impl AttemptHistoryEntry
Sourcepub fn attempt_id(&self) -> AttemptId
pub fn attempt_id(&self) -> AttemptId
Returns the attempt identifier.
Sourcepub fn started_at(&self) -> u64
pub fn started_at(&self) -> u64
Returns the timestamp when the attempt started.
Sourcepub fn finished_at(&self) -> Option<u64>
pub fn finished_at(&self) -> Option<u64>
Returns the timestamp when the attempt finished, if any.
Sourcepub fn result(&self) -> Option<AttemptResultKind>
pub fn result(&self) -> Option<AttemptResultKind>
Returns canonical attempt result taxonomy, if finished.
Sourcepub fn success(&self) -> Option<bool>
pub fn success(&self) -> Option<bool>
Returns whether the attempt succeeded, if finished.
This is a compatibility view over Self::result.
Trait Implementations§
Source§impl Clone for AttemptHistoryEntry
impl Clone for AttemptHistoryEntry
Source§fn clone(&self) -> AttemptHistoryEntry
fn clone(&self) -> AttemptHistoryEntry
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 AttemptHistoryEntry
impl Debug for AttemptHistoryEntry
Source§impl From<AttemptHistoryEntry> for SnapshotAttemptHistoryEntry
impl From<AttemptHistoryEntry> for SnapshotAttemptHistoryEntry
Source§fn from(entry: AttemptHistoryEntry) -> Self
fn from(entry: AttemptHistoryEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttemptHistoryEntry
impl PartialEq for AttemptHistoryEntry
impl Eq for AttemptHistoryEntry
impl StructuralPartialEq for AttemptHistoryEntry
Auto Trait Implementations§
impl Freeze for AttemptHistoryEntry
impl RefUnwindSafe for AttemptHistoryEntry
impl Send for AttemptHistoryEntry
impl Sync for AttemptHistoryEntry
impl Unpin for AttemptHistoryEntry
impl UnsafeUnpin for AttemptHistoryEntry
impl UnwindSafe for AttemptHistoryEntry
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