pub enum NetEvent {
PacketCreated(EventUTC, PacketID),
PacketConsumed(EventUTC, PacketID),
EpochCreated(EventUTC, EpochID),
EpochStarted(EventUTC, EpochID),
EpochFinished(EventUTC, EpochID),
EpochCancelled(EventUTC, EpochID),
PacketMoved(EventUTC, PacketID, PacketLocation),
InputSalvoTriggered(EventUTC, EpochID, SalvoConditionName),
OutputSalvoTriggered(EventUTC, EpochID, SalvoConditionName),
}Expand description
An event that occurred during a network action.
Events provide a complete audit trail of all state changes in the network. Each event includes a timestamp and relevant identifiers.
Variants§
PacketCreated(EventUTC, PacketID)
A new packet was created.
PacketConsumed(EventUTC, PacketID)
A packet was removed from the network.
EpochCreated(EventUTC, EpochID)
A new epoch was created (in Startable state).
EpochStarted(EventUTC, EpochID)
An epoch transitioned from Startable to Running.
EpochFinished(EventUTC, EpochID)
An epoch completed successfully.
EpochCancelled(EventUTC, EpochID)
An epoch was cancelled.
PacketMoved(EventUTC, PacketID, PacketLocation)
A packet moved to a new location.
InputSalvoTriggered(EventUTC, EpochID, SalvoConditionName)
An input salvo condition was triggered, creating an epoch.
OutputSalvoTriggered(EventUTC, EpochID, SalvoConditionName)
An output salvo condition was triggered, sending packets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetEvent
impl RefUnwindSafe for NetEvent
impl Send for NetEvent
impl Sync for NetEvent
impl Unpin for NetEvent
impl UnwindSafe for NetEvent
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