pub struct Task {
pub generation: u64,
pub removal: Option<Removal>,
pub name: String,
pub root: PathBuf,
pub state_dir: PathBuf,
pub participants: Vec<Participant>,
pub checkout: bool,
pub no_fetch: bool,
pub lifecycle: TaskLifecycle,
pub operation: Operation,
pub problem: Option<Problem>,
}Expand description
Membership, placement and operation history for one task incarnation.
Fields§
§generation: u64Identifier distinguishing successive uses of the same task name.
removal: Option<Removal>Removal or restoration evidence associated with this task.
name: StringBranch name that identifies this task.
root: PathBufDirectory under which the task branch path is placed.
state_dir: PathBufDirectory holding authoritative Workyard state.
participants: Vec<Participant>Members associated with this task or operation.
checkout: boolAllow reuse of an existing target branch.
no_fetch: boolUse locally available refs without fetching.
lifecycle: TaskLifecycleCurrent membership lifecycle of the task.
operation: OperationInvocation history tracked separately from task lifecycle.
problem: Option<Problem>Diagnostic describing a failure or an unresolved condition.
Implementations§
Source§impl Task
impl Task
Sourcepub fn admitted_roots(&self, previous: Option<&Self>) -> Vec<PathBuf>
pub fn admitted_roots(&self, previous: Option<&Self>) -> Vec<PathBuf>
Only a newly established worktree can publish its original discovery roots. A later no-op recovery must respect an intervening explicit untrack.
Sourcepub fn creation_options(&self, index: usize) -> CreationOptions
pub fn creation_options(&self, index: usize) -> CreationOptions
Use the participant’s creation policy, falling back to the task defaults.