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.


impl ScopedRuntime

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

Formats the value using the given formatter. Read more

Auto Trait Implementations