pub struct SimEvent {
pub tick: u64,
pub id: u64,
pub kind: SimEventKind,
}Expand description
A schedulable event in the simulation.
Fields§
§tick: u64When this event should fire (simulation tick).
id: u64Unique event ID for tie-breaking (FIFO for same-tick events).
kind: SimEventKindThe event payload.
Trait Implementations§
Source§impl Ord for SimEvent
impl Ord for SimEvent
Source§impl PartialOrd for SimEvent
impl PartialOrd for SimEvent
impl Eq for SimEvent
Auto Trait Implementations§
impl Freeze for SimEvent
impl RefUnwindSafe for SimEvent
impl Send for SimEvent
impl Sync for SimEvent
impl Unpin for SimEvent
impl UnsafeUnpin for SimEvent
impl UnwindSafe for SimEvent
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