pub enum EngineSignal<F> {
Initialised,
Progress(Progress<F>),
Iterated,
CheckpointSaved,
CheckpointRequested(CheckpointReason),
Termination(Termination),
}Expand description
High-level lifecycle events emitted by the engine.
These events are used for:
- observers / logging
- external monitoring
- UI updates
They are distinct from Progress, which represents numerical solver signals.
Variants§
Initialised
Engine has completed initialisation and is ready to iterate.
Progress(Progress<F>)
A single progress signal emitted during iteration.
Iterated
Engine has completed a single iteration
CheckpointSaved
A checkpoint has been successfully persisted.
CheckpointRequested(CheckpointReason)
A checkpoint has been requested.
Termination(Termination)
Engine has terminated for any reason.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for EngineSignal<F>
impl<F> RefUnwindSafe for EngineSignal<F>where
Progress<F>: RefUnwindSafe,
impl<F> Send for EngineSignal<F>
impl<F> Sync for EngineSignal<F>
impl<F> Unpin for EngineSignal<F>
impl<F> UnsafeUnpin for EngineSignal<F>where
Progress<F>: UnsafeUnpin,
impl<F> UnwindSafe for EngineSignal<F>where
Progress<F>: UnwindSafe,
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