pub struct Runtime<'runtime> { /* private fields */ }
Expand description

A system the manages the lifetime of threads. This includes ensuring errors are handled, threads are paused and resumed on request and that once the main application is completed, all threads complete and end.

Implementations

Create a new instances of the Runtime.

Get a cloned copy of the ThreadStatuses.

Register a new Threadable.

Join the runtime thread, waiting for all threads to finish.

Errors

Returns and error if any of the threads registered to the runtime produce an error.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.