pub enum ReplayTrace {
Local(LocalReplayTrace),
Remote(RemoteReplayTrace),
}Expand description
Trace link for audit and (possibly) replay.
The shape depends on the backend type. This is the constitutional type that prevents “ReplayTrace + hope” semantics.
Variants§
Local(LocalReplayTrace)
Local backend: replay-eligible (deterministic)
Remote(RemoteReplayTrace)
Remote backend: audit-eligible only (bounded stochasticity)
Implementations§
Source§impl ReplayTrace
impl ReplayTrace
Sourcepub fn is_replay_eligible(&self) -> bool
pub fn is_replay_eligible(&self) -> bool
Check if this trace is replay-eligible (only local).
Sourcepub fn replayability(&self) -> Replayability
pub fn replayability(&self) -> Replayability
Get the replayability level.
Trait Implementations§
Source§impl Clone for ReplayTrace
impl Clone for ReplayTrace
Source§fn clone(&self) -> ReplayTrace
fn clone(&self) -> ReplayTrace
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 moreSource§impl Debug for ReplayTrace
impl Debug for ReplayTrace
Source§impl<'de> Deserialize<'de> for ReplayTrace
impl<'de> Deserialize<'de> for ReplayTrace
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplayTrace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplayTrace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ReplayTrace
impl Serialize for ReplayTrace
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ReplayTrace
impl RefUnwindSafe for ReplayTrace
impl Send for ReplayTrace
impl Sync for ReplayTrace
impl Unpin for ReplayTrace
impl UnsafeUnpin for ReplayTrace
impl UnwindSafe for ReplayTrace
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