pub struct Polling {
    pub poll_rate: Duration,
    pub printing: bool,
    pub early_exit_minimum: Option<f64>,
    pub thread_execution_reporting: bool,
}
Expand description

The struct defining polling data.

Fields

poll_rate: Duration

How often to poll the process.

printing: bool

If to print progress.

early_exit_minimum: Option<f64>

If to exit early if the evaluation function produces a value less than or equal to the given value.

thread_execution_reporting: bool

If to print thread execution information.

Implementations

Default but giving printing and early_exit_minimum.

Trait Implementations

The typical parameters you might want.

Self {
    poll_rate: Polling::DEFAULT_POLL_RATE, // `Duration::from_millis(10);`
    printing: true,
    early_exit_minimum: None,
    thread_execution_reporting: false,
}

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.