Struct taskchampion::Task[][src]

pub struct Task { /* fields omitted */ }
Expand description

A task, as publicly exposed by this crate.

Note that Task objects represent a snapshot of the task at a moment in time, and are not protected by the atomicity of the backend storage. Concurrent modifications are safe, but a Task that is cached for more than a few seconds may cause the user to see stale data. Fetch, use, and drop Tasks quickly.

This struct contains only getters for various values on the task. The into_mut method returns a TaskMut which can be used to modify the task.

Implementations

Prepare to mutate this task, requiring a mutable Replica in order to update the data it contains.

Get the wait time. If this value is set, it will be returned, even if it is in the past.

Determine whether this task is waiting now.

Determine whether this task is active – that is, that it has been started and not stopped.

Check if this task has the given tag

Iterate over the task’s tags

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.