Struct bigml::wait::WaitOptions[][src]

pub struct WaitOptions { /* fields omitted */ }

Options controlling how long we wait and what makes us give up. This uses a "builder" pattern, so you can write:

use std::time::Duration;
use bigml::wait::WaitOptions;

let options = WaitOptions::default()
    .timeout(Duration::from_secs(120))
    .allowed_errors(5);

Methods

impl WaitOptions
[src]

Set an optional timeout after which to abandon this wait.

How long should we wait between retries? Defaults to 10 seconds. Note that BigML has suggested not polling more often than every 4 seconds, (to avoid losing API access) so if you set a lower value, this will be

How many errors should be ignored before giving up? This can be useful for long-running Execution jobs, where we don't want a transient network error to result in failure.

Trait Implementations

impl Default for WaitOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for WaitOptions

impl Sync for WaitOptions