pub struct EngineOutputWithSnapshot<R, S>where
S: UserState + Snapshotable,{
pub result: R,
pub snapshot: S::Snapshot,
pub summary: RunSummary<S::Float>,
pub termination: Termination,
}Expand description
Result of a completed calculation including a restart snapshot.
Returned by the engine run_with_snapshot method
Fields§
§result: RUser-defined result produced by the procedure.
snapshot: S::SnapshotSnapshot captured from the final state.
summary: RunSummary<S::Float>Execution summary.
termination: TerminationReason execution terminated.
Trait Implementations§
Auto Trait Implementations§
impl<R, S> Freeze for EngineOutputWithSnapshot<R, S>
impl<R, S> RefUnwindSafe for EngineOutputWithSnapshot<R, S>where
R: RefUnwindSafe,
<S as Snapshotable>::Snapshot: RefUnwindSafe,
<S as UserState>::Float: RefUnwindSafe,
impl<R, S> Send for EngineOutputWithSnapshot<R, S>
impl<R, S> Sync for EngineOutputWithSnapshot<R, S>
impl<R, S> Unpin for EngineOutputWithSnapshot<R, S>
impl<R, S> UnsafeUnpin for EngineOutputWithSnapshot<R, S>where
R: UnsafeUnpin,
<S as Snapshotable>::Snapshot: UnsafeUnpin,
<S as UserState>::Float: UnsafeUnpin,
impl<R, S> UnwindSafe for EngineOutputWithSnapshot<R, S>where
R: UnwindSafe,
<S as Snapshotable>::Snapshot: UnwindSafe,
<S as UserState>::Float: 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