Struct pliantdb_jobs::task::Handle[][src]

pub struct Handle<T, Key> {
    pub id: Id,
    // some fields omitted
}
Expand description

References a background task.

Fields

id: Id

The task’s id.

Implementations

Returns a copy of this handle. When the job is completed, both handles will be able to receive() the results.

Waits for the job to complete and returns the result.

Errors

Returns an error if the job is cancelled.

Tries to receive the status of the job. If available, it is returned. This function will not block.

Errors

Returns an error if the job isn’t complete.

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

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.