pub enum TraceLink {
Local(LocalTraceLink),
Remote(RemoteTraceLink),
}Expand description
Trace link for audit and (possibly) replay.
The shape depends on the backend type. This is the constitutional type that prevents “TraceLink + hope” semantics.
Variants§
Local(LocalTraceLink)
Local backend: replay-eligible (deterministic)
Remote(RemoteTraceLink)
Remote backend: audit-eligible only (bounded stochasticity)
Implementations§
Source§impl TraceLink
impl TraceLink
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<'de> Deserialize<'de> for TraceLink
impl<'de> Deserialize<'de> for TraceLink
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 TraceLink
impl RefUnwindSafe for TraceLink
impl Send for TraceLink
impl Sync for TraceLink
impl Unpin for TraceLink
impl UnwindSafe for TraceLink
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