pub enum SimulationUpdate {
Started {
sim_id: Uuid,
total_steps: usize,
},
Progress {
step: usize,
total: usize,
metrics: SimulationMetrics,
timestamp: u64,
},
Paused {
at_step: usize,
},
Resumed {
from_step: usize,
},
Completed {
final_metrics: SimulationMetrics,
elapsed_ms: u64,
},
Error {
message: String,
at_step: usize,
},
}Expand description
Update event from a running simulation.
Variants§
Started
Simulation started.
Progress
Progress update at a time step.
Fields
§
metrics: SimulationMetricsMetrics at this step.
Paused
Simulation paused.
Resumed
Simulation resumed.
Completed
Simulation completed.
Error
Error occurred.
Trait Implementations§
Source§impl Clone for SimulationUpdate
impl Clone for SimulationUpdate
Source§fn clone(&self) -> SimulationUpdate
fn clone(&self) -> SimulationUpdate
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 SimulationUpdate
impl Debug for SimulationUpdate
Source§impl<'de> Deserialize<'de> for SimulationUpdate
impl<'de> Deserialize<'de> for SimulationUpdate
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
Auto Trait Implementations§
impl Freeze for SimulationUpdate
impl RefUnwindSafe for SimulationUpdate
impl Send for SimulationUpdate
impl Sync for SimulationUpdate
impl Unpin for SimulationUpdate
impl UnwindSafe for SimulationUpdate
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