Struct ffi_helpers::task::TaskHandle[][src]

pub struct TaskHandle<T> { /* fields omitted */ }
Expand description

An opaque handle to some task which is running in the background.

Implementations

Spawn a Task in the background, returning the a TaskHandle so you can cancel it or retrieve the result later on.

Check if the background task has finished.

If the other end hangs up for whatever reason this will return an error.

Block the current thread until the task has finished and returned a result.

Cancel the background task.

Has this task been cancelled?

Trait Implementations

Executes the destructor for this type. 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.

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.