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.
Iterate over the task’s tags
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Task
impl UnwindSafe for Task
Blanket Implementations
Mutably borrows from an owned value. Read more