pub struct Trace { /* private fields */ }Available on crate features
rr and runtime only.Expand description
A complete execution trace, including object construction and startup.
Traces refer to the modules they instantiate only by Checksum; see
Trace::module_checksums.
Implementations§
Source§impl Trace
impl Trace
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
Takes ownership of a serialized trace, checking its version. Its contents are checked as they are read, such as during replay.
Sourcepub fn module_checksums(&self) -> Result<Vec<Checksum>>
pub fn module_checksums(&self) -> Result<Vec<Checksum>>
Returns the checksums of the core modules that the trace instantiates, in the order in which they are first instantiated, without duplicates. Replaying the trace requires their bytecode.
This reads the whole trace, and fails if it is truncated or otherwise malformed.
Auto Trait Implementations§
impl Forget for Trace
impl Freeze for Trace
impl Move 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more