Struct tokio_scoped::ScopedRuntime[][src]

pub struct ScopedRuntime { /* fields omitted */ }

Wrapper type around a tokio Runtime which can be used to create Scopes. This type takes ownership of the Runtime. For an alternative approach that

See also the scope function.

Methods

impl ScopedRuntime
[src]

Creates a scope bound by the lifetime of self that can be used to spawn scoped futures.

Consumes the ScopedRuntime and returns the inner Runtime variable.

Trait Implementations

impl Debug for ScopedRuntime
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations