pub struct ReplayCheckpoint {
pub events_processed: u64,
pub total_events: u64,
pub seed: u64,
pub metadata_hash: u64,
pub created_at: u64,
}Expand description
A checkpoint for resuming long replays.
Checkpoints capture the current position in the trace, allowing replay to be suspended and resumed later without re-processing all events.
§Safety
Checkpoints are only valid for the specific trace file they were created from. Attempting to resume with a checkpoint from a different trace will result in an error.
Fields§
§events_processed: u64Number of events that have been processed.
total_events: u64Total number of events in the trace this checkpoint came from.
seed: u64The seed from the trace metadata (for validation).
metadata_hash: u64Hash of the trace metadata (for validation).
created_at: u64Deterministic checkpoint timestamp derived from trace metadata and position.
Implementations§
Source§impl ReplayCheckpoint
impl ReplayCheckpoint
Sourcepub fn to_bytes(&self) -> StreamingReplayResult<Vec<u8>>
pub fn to_bytes(&self) -> StreamingReplayResult<Vec<u8>>
Sourcepub fn from_bytes(bytes: &[u8]) -> StreamingReplayResult<Self>
pub fn from_bytes(bytes: &[u8]) -> StreamingReplayResult<Self>
Trait Implementations§
Source§impl Clone for ReplayCheckpoint
impl Clone for ReplayCheckpoint
Source§fn clone(&self) -> ReplayCheckpoint
fn clone(&self) -> ReplayCheckpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReplayCheckpoint
Source§impl Debug for ReplayCheckpoint
impl Debug for ReplayCheckpoint
Source§impl<'de> Deserialize<'de> for ReplayCheckpoint
impl<'de> Deserialize<'de> for ReplayCheckpoint
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
Auto Trait Implementations§
impl Freeze for ReplayCheckpoint
impl RefUnwindSafe for ReplayCheckpoint
impl Send for ReplayCheckpoint
impl Sync for ReplayCheckpoint
impl Unpin for ReplayCheckpoint
impl UnsafeUnpin for ReplayCheckpoint
impl UnwindSafe for ReplayCheckpoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).