[−][src]Struct genevo::simulation::State
The State
struct holds the state of the Simulation
.
Fields
started_at: DateTime<Local>
The local time when this simulation started.
iteration: u64
The number of the iteration that this state represents. Iterations are counted from 1 and increased by 1 on each iteration of the simulation loop.
duration: Duration
Duration of processing the current iteration. This is the time it took to process one iteration of the algorithm.
processing_time: ProcessingTime
Accumulated time spent by each thread in case of parallel processing.
In case of sequential processing this time is nearly the same as the
duration
value. In case of parallel processing this time is usually
a multitude of the duration
.
result: <A as Algorithm>::Output
The result of this iteration.
Trait Implementations
impl<A: PartialEq> PartialEq<State<A>> for State<A> where
A: Algorithm,
[src]
A: Algorithm,
impl<A: Debug> Debug for State<A> where
A: Algorithm,
[src]
A: Algorithm,
Auto Trait Implementations
impl<A> Send for State<A> where
<A as Algorithm>::Output: Send,
<A as Algorithm>::Output: Send,
impl<A> Sync for State<A> where
<A as Algorithm>::Output: Sync,
<A as Algorithm>::Output: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,