pub struct Spawn(_);
Expand description

Return value from the spawn function.

Currently this value doesn’t actually provide any functionality. However, it provides a way to add functionality later without breaking backwards compatibility.

This also implements IntoFuture so that it can be used as the return value in a for_each loop.

See spawn for more details.

Trait Implementations

Formats the value using the given formatter. Read more

The future that this type can be converted into.

The item that the future may resolve with.

The error that the future may resolve with.

Consumes this object and produces a future.

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.