pub struct Runtime { /* private fields */ }
Expand description

Runtime for futures.

Runs in a separate thread.

Implementations

Spawns a new tokio runtime with a default thread count on a background thread and returns a Runtime which can be used to spawn tasks via its executor.

Spawns a new tokio runtime with a the specified thread count on a background thread and returns a Runtime which can be used to spawn tasks via its executor.

Returns this runtime raw executor.

Deprecated: Exists only to connect with current JSONRPC implementation.

Returns runtime executor.

Trait Implementations

Performs the conversion.

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.