pub enum SimEventKind {
DeliverMessage {
from: u64,
to: u64,
payload: Vec<u8>,
},
TimerFire {
node_id: u64,
timer_name: String,
},
InjectFault {
description: String,
},
HealFault {
description: String,
},
Custom {
tag: String,
data: Vec<u8>,
},
}Expand description
Types of simulation events.
Variants§
DeliverMessage
Deliver a network message.
TimerFire
Fire a timer.
InjectFault
Inject a fault.
HealFault
Heal a fault.
Custom
Custom event for extensibility.
Trait Implementations§
Source§impl Clone for SimEventKind
impl Clone for SimEventKind
Source§fn clone(&self) -> SimEventKind
fn clone(&self) -> SimEventKind
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 moreAuto Trait Implementations§
impl Freeze for SimEventKind
impl RefUnwindSafe for SimEventKind
impl Send for SimEventKind
impl Sync for SimEventKind
impl Unpin for SimEventKind
impl UnsafeUnpin for SimEventKind
impl UnwindSafe for SimEventKind
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