pub enum TraceEventKind {
MessageSent {
to: NodeId,
msg_type: String,
size_bytes: usize,
},
MessageDelivered {
from: NodeId,
msg_type: String,
size_bytes: usize,
},
MessageDropped {
from: NodeId,
to: NodeId,
reason: String,
},
TimerFired {
timer_type: String,
},
StateTransition {
from_state: String,
to_state: String,
metadata: String,
},
FaultInjected {
fault_type: String,
details: String,
},
FaultHealed {
fault_type: String,
details: String,
},
StorageOp {
op_type: String,
key_count: usize,
},
Custom {
tag: String,
data: String,
},
}Expand description
The specific kind of trace event.
Variants§
MessageSent
A message was sent from one node to another.
MessageDelivered
A message was delivered to a node.
MessageDropped
A message was dropped.
TimerFired
A timer fired.
StateTransition
A state transition occurred.
FaultInjected
A fault was injected.
FaultHealed
A fault was healed.
StorageOp
A storage operation was applied.
Custom
A custom application event.
Trait Implementations§
Source§impl Clone for TraceEventKind
impl Clone for TraceEventKind
Source§fn clone(&self) -> TraceEventKind
fn clone(&self) -> TraceEventKind
Returns a duplicate of the value. Read more
1.0.0 · 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 TraceEventKind
impl Debug for TraceEventKind
Source§impl<'de> Deserialize<'de> for TraceEventKind
impl<'de> Deserialize<'de> for TraceEventKind
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 TraceEventKind
impl RefUnwindSafe for TraceEventKind
impl Send for TraceEventKind
impl Sync for TraceEventKind
impl Unpin for TraceEventKind
impl UnsafeUnpin for TraceEventKind
impl UnwindSafe for TraceEventKind
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