pub struct StepResult<'w> {
pub snapshot: Snapshot<'w>,
pub receipts: Vec<Receipt>,
pub metrics: StepMetrics,
}Expand description
Result of a successful LockstepWorld::step_sync() call.
Fields§
§snapshot: Snapshot<'w>Read-only snapshot of world state after this tick.
receipts: Vec<Receipt>Per-command receipts from tick execution (applied, expired, rolled back).
Does not include submission-rejected receipts (e.g. QueueFull).
In lockstep mode the queue is drained every tick, so rejection is rare.
If you need submission receipts, use the lower-level
TickEngine API directly.
metrics: StepMetricsPerformance metrics for this tick.
Auto Trait Implementations§
impl<'w> Freeze for StepResult<'w>
impl<'w> RefUnwindSafe for StepResult<'w>
impl<'w> Send for StepResult<'w>
impl<'w> Sync for StepResult<'w>
impl<'w> Unpin for StepResult<'w>
impl<'w> UnwindSafe for StepResult<'w>
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