[][src]Struct genevo::simulation::State

pub struct State<A> where
    A: Algorithm
{ pub started_at: DateTime<Local>, pub iteration: u64, pub duration: Duration, pub processing_time: ProcessingTime, pub result: <A as Algorithm>::Output, }

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]

impl<A: Debug> Debug for State<A> where
    A: Algorithm
[src]

Auto Trait Implementations

impl<A> Send for State<A> where
    <A as Algorithm>::Output: Send

impl<A> Sync for State<A> where
    <A as Algorithm>::Output: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]