pub enum SimulationEvent {
BudgetCharged {
time: TimeStamp,
authority: AuthorityId,
amount: u32,
remaining: u32,
},
JournalAppended {
time: TimeStamp,
entry: JournalEntry,
},
LeakageRecorded {
time: TimeStamp,
bits: u32,
},
MetadataStored {
time: TimeStamp,
key: String,
value: String,
},
EnvelopeQueued {
time: TimeStamp,
from: NetworkAddress,
to: NetworkAddress,
envelope: Vec<u8>,
},
NonceGenerated {
time: TimeStamp,
nonce: Vec<u8>,
},
}Expand description
Simulation events for deterministic replay
These events capture all observable side effects from effect execution, enabling replay, analysis, and property checking in simulation.
Variants§
BudgetCharged
Flow budget was charged
Fields
Authority that was charged
JournalAppended
Journal entry was appended
LeakageRecorded
Metadata leakage was recorded
MetadataStored
Metadata was stored
EnvelopeQueued
Network envelope was queued
NonceGenerated
Nonce was generated
Trait Implementations§
Source§impl Clone for SimulationEvent
impl Clone for SimulationEvent
Source§fn clone(&self) -> SimulationEvent
fn clone(&self) -> SimulationEvent
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 SimulationEvent
impl Debug for SimulationEvent
Source§impl<'de> Deserialize<'de> for SimulationEvent
impl<'de> Deserialize<'de> for SimulationEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulationEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulationEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SimulationEvent
impl Serialize for SimulationEvent
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 SimulationEvent
impl RefUnwindSafe for SimulationEvent
impl Send for SimulationEvent
impl Sync for SimulationEvent
impl Unpin for SimulationEvent
impl UnsafeUnpin for SimulationEvent
impl UnwindSafe for SimulationEvent
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