pub enum SimulationEvent {
Started {
config: SimulationConfig,
start_time: Instant,
},
Progress {
elapsed: Duration,
completion_percent: f64,
current_metrics: SimulationMetrics,
},
PhaseChanged {
from: SimulationPhase,
to: SimulationPhase,
},
Error {
message: String,
recoverable: bool,
},
Completed {
result: SimulationResult,
},
}Expand description
Simulation events for progress tracking.
Variants§
Started
Simulation started.
Progress
Progress update.
PhaseChanged
Phase changed.
Error
Error occurred.
Completed
Simulation completed.
Fields
§
result: SimulationResultTrait 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 moreAuto 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