pub struct FinalWrite<'a> {
pub first_index: u64,
pub events: &'a [StoredEvent],
pub snapshot: Option<&'a Snapshot>,
pub record: &'a RunRecord,
pub expected_epoch: u64,
}Expand description
The final state of an execution, stored by RunStore::finish.
Fields§
§first_index: u64Index of the first of events in the run’s log.
events: &'a [StoredEvent]The execution’s events not stored yet (possibly none), as for
RunStore::append_events.
snapshot: Option<&'a Snapshot>The snapshot of a paused run.
record: &'a RunRecordThe run’s final record. The store keeps its own event counters.
expected_epoch: u64The epoch the execution was claimed at: the write is refused with
StoreError::Precondition when the stored record is at another one.
Trait Implementations§
Source§impl<'a> Clone for FinalWrite<'a>
impl<'a> Clone for FinalWrite<'a>
impl<'a> Copy for FinalWrite<'a>
Auto Trait Implementations§
impl<'a> Forget for FinalWrite<'a>
impl<'a> Freeze for FinalWrite<'a>
impl<'a> Move for FinalWrite<'a>
impl<'a> RefUnwindSafe for FinalWrite<'a>
impl<'a> Send for FinalWrite<'a>
impl<'a> Sync for FinalWrite<'a>
impl<'a> Unpin for FinalWrite<'a>
impl<'a> UnsafeUnpin for FinalWrite<'a>
impl<'a> UnwindSafe for FinalWrite<'a>
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