pub enum TraceEventKind {
Emit {
agent: AgentId,
event_id: u64,
seq: u64,
},
Send {
from: AgentId,
to: AgentId,
event_id: u64,
delay_rounds: u8,
duplicated: bool,
},
Drop {
from: AgentId,
to: AgentId,
event_id: u64,
reason: DropReason,
},
Deliver {
from: AgentId,
to: AgentId,
event_id: u64,
},
Reorder {
delivered_count: usize,
},
Partition {
agent: AgentId,
isolated: bool,
},
ClockFreeze {
agent: AgentId,
until_round: u64,
},
Reconcile {
agent_a: AgentId,
agent_b: AgentId,
a_to_b: usize,
b_to_a: usize,
},
}Expand description
Trace event payload variants.
Variants§
Emit
A local event emission.
Send
Successful network enqueue.
Fields
Drop
Message dropped by fault injector.
Fields
§
reason: DropReasonWhy it dropped.
Deliver
Message delivered to receiver.
Reorder
Ready messages were reordered before delivery.
Partition
A network partition toggled for one agent.
ClockFreeze
A clock was frozen for a bounded period.
Reconcile
A reconciliation exchange between two agents.
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
Source§impl PartialEq for TraceEventKind
impl PartialEq for TraceEventKind
Source§impl Serialize for TraceEventKind
impl Serialize for TraceEventKind
impl Eq for TraceEventKind
impl StructuralPartialEq for TraceEventKind
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