Skip to main content

State

Struct State 

Source
pub struct State {
Show 22 fields pub v: u32, pub run_id: String, pub goal: String, pub updated_at: u64, pub repo: PathBuf, pub worktree: PathBuf, pub branch: String, pub phase: Phase, pub paused: Option<Paused>, pub task_index: Option<usize>, pub task_base: Option<String>, pub attempt: Option<u32>, pub attempts_used: u32, pub lane: Option<String>, pub unknown_streak: u32, pub skipped: Vec<String>, pub last_end: Option<LastEnd>, pub approved: bool, pub issues: Vec<Issue>, pub last_output_tail: String, pub job_seq: u64, pub lanes: BTreeMap<String, LaneMark>,
}

Fields§

§v: u32§run_id: String§goal: String§updated_at: u64

Unix milliseconds; set on every write.

§repo: PathBuf

The main checkout.

§worktree: PathBuf§branch: String§phase: Phase§paused: Option<Paused>§task_index: Option<usize>

1-based position in the plan’s tasks; None before the first task.

§task_base: Option<String>

The worktree’s HEAD when the current task started.

§attempt: Option<u32>

The task’s running attempt number, 1-based; never reset by resume.

§attempts_used: u32

What the attempt budget counts; resume and a new task set it to 0.

§lane: Option<String>§unknown_streak: u32§skipped: Vec<String>

Lanes skipped for the current task.

§last_end: Option<LastEnd>§approved: bool

True between an approve verdict and the task commit.

§issues: Vec<Issue>§last_output_tail: String§job_seq: u64

Numbers every job of the run; names the raw log files.

§lanes: BTreeMap<String, LaneMark>

Trait Implementations§

Source§

impl Clone for State

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 State

Source§

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

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

impl<'de> Deserialize<'de> for State

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

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

impl PartialEq for State

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for State

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
Source§

impl StructuralPartialEq for State

Auto Trait Implementations§

§

impl Forget for State

§

impl Freeze for State

§

impl Move for State

§

impl RefUnwindSafe for State

§

impl Send for State
where RawVecInner: Send, NodeRef<Owned, String, LaneMark, LeafOrInternal>: Send, BoxRaw<(String, LaneMark)>: Send,

§

impl Sync for State
where RawVecInner: Sync, NodeRef<Owned, String, LaneMark, LeafOrInternal>: Sync, BoxRaw<(String, LaneMark)>: Sync,

§

impl Unpin for State
where *const u8 is !null: Unpin, *const LeafNode<String, LaneMark> is !null: Unpin, Box<(String, LaneMark)>: Unpin,

§

impl UnsafeUnpin for State

§

impl UnwindSafe for State
where RawVecInner: UnwindSafe, BTreeMap<String, LaneMark>: UnwindSafe,

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> 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.