pub struct Trace {
pub path: PathBuf,
pub manifest: TraceManifest,
pub events: Vec<Value>,
pub checkpoints: Vec<TraceCheckpoint>,
pub truncated: bool,
}Expand description
An opened trace bundle.
Fields§
§path: PathBufDirectory the bundle was read from.
manifest: TraceManifestWhat the run was and how it ended.
events: Vec<Value>The one ordered timeline.
checkpoints: Vec<TraceCheckpoint>The named moments on that timeline.
truncated: boolWhether records are missing from the bundle.
Implementations§
Source§impl Trace
impl Trace
Sourcepub fn state(&self, index: u32) -> Result<Option<Value>, TraceError>
pub fn state(&self, index: u32) -> Result<Option<Value>, TraceError>
Read one checkpoint’s live control state.
§Errors
Returns an error when the member exists but is not readable JSON.
Sourcepub fn screenshot(&self, index: u32) -> Result<Option<Vec<u8>>, TraceError>
pub fn screenshot(&self, index: u32) -> Result<Option<Vec<u8>>, TraceError>
Read one checkpoint’s screenshot, when the recorder took one.
§Errors
Returns an error when the member exists but cannot be read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
impl UnwindSafe for Trace
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