Skip to main content

TaskRecord

Struct TaskRecord 

Source
pub struct TaskRecord {
    pub generation: u64,
    pub removal: Option<RemovalRecord>,
    pub version: u32,
    pub task: String,
    pub tasks_root: StoredPath,
    pub state_dir: StoredPath,
    pub checkout: bool,
    pub no_fetch: bool,
    pub lifecycle: String,
    pub operation: OperationRecord,
    pub participants: Vec<ParticipantRecord>,
    pub problem: Option<ProblemRecord>,
    /* private fields */
}
Expand description

Versioned on-disk representation of a task incarnation.

Fields§

§generation: u64

Identifier distinguishing successive uses of the same task name.

§removal: Option<RemovalRecord>

Removal or restoration evidence associated with this task.

§version: u32

Storage format version used to interpret this record.

§task: String

Task selected for this operation.

§tasks_root: StoredPath

Directory containing the task workspaces.

§state_dir: StoredPath

Directory holding authoritative Workyard state.

§checkout: bool

Allow reuse of an existing target branch.

§no_fetch: bool

Use locally available refs without fetching.

§lifecycle: String

Current membership lifecycle of the task.

§operation: OperationRecord

Invocation history tracked separately from task lifecycle.

§participants: Vec<ParticipantRecord>

Members associated with this task or operation.

§problem: Option<ProblemRecord>

Diagnostic describing a failure or an unresolved condition.

Trait Implementations§

Source§

impl Clone for TaskRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TaskRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TaskRecord

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&Task> for TaskRecord

Source§

fn from(task: &Task) -> Self

Converts to this type from the input type.
Source§

impl Serialize for TaskRecord

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.