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

An implementation of Spawn that panics when used.

Examples

use futures::task::SpawnExt;
use futures_test::task::PanicSpawner;

let spawn = PanicSpawner::new();
spawn.spawn(async { })?; // Will panic

Implementations

Create a new instance

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Spawns a future that will be run to completion. Read more

Determines whether the executor is able to spawn new tasks. Read more

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

Performs the conversion.

Performs the conversion.

Spawns a task that polls the given future with output () to completion. Read more

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.