Struct tokio::runtime::current_thread::Builder [] [src]

pub struct Builder { /* fields omitted */ }

Builds a Single-threaded runtime with custom configuration values.

Methods can be chained in order to set the configuration values. The Runtime is constructed by calling build.

New instances of Builder are obtained via Builder::new.

See function level documentation for details on the various configuration settings.

Examples

extern crate tokio;
extern crate tokio_timer;

use tokio::runtime::current_thread::Builder;
use tokio_timer::clock::Clock;

// build Runtime
let runtime = Builder::new()
    .clock(Clock::new())
    .build();
// ... call runtime.run(...)

Methods

impl Builder
[src]

[src]

Returns a new runtime builder initialized with default configuration values.

Configuration methods can be chained on the return value.

Important traits for &'a mut R
[src]

Set the Clock instance that will be used by the runtime.

[src]

Create the configured Runtime.

Trait Implementations

impl Debug for Builder
[src]

[src]

Formats the value using the given formatter. Read more