Struct smartpool::RunningTask

source ·
pub struct RunningTask {
    pub spawn: Spawn<Box<dyn Future<Item = (), Error = ()> + Send + 'static>>,
    pub close_counted: Atomic<bool>,
}
Expand description

The form a future exists in while it is being executed

Fields§

§spawn: Spawn<Box<dyn Future<Item = (), Error = ()> + Send + 'static>>§close_counted: Atomic<bool>

Trait Implementations§

Formats the value using the given formatter. 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

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.