pub struct HandoffState {
pub parked: bool,
pub supplied: Option<String>,
pub reason: Option<HandoffReason>,
pub probing: bool,
pub fill: Option<FillReading>,
pub swap_token: Option<u64>,
pub awaiting: bool,
pub judgment_uuid: Option<String>,
pub judgment_started: bool,
pub judgment: Option<String>,
}Expand description
The handoff this session is running, if any.
The request is parked rather than acted on while a turn runs: a handoff never interrupts one. The judgment turn is forge’s own prompt, so the reply it captures is the last assistant text before that turn ends - and only that turn’s end finishes the handoff.
Fields§
§parked: boolA request that arrived while a turn was running.
supplied: Option<String>The note the running turn’s exit call carried, which becomes the
brief’s judgment half. None falls back to the turn’s last text.
reason: Option<HandoffReason>Why this handoff runs, which the row and the record both state.
probing: boolA fill reading was asked for at the last turn boundary, and the trigger is waiting to judge it.
fill: Option<FillReading>The reading that fired this handoff, carried to the row.
swap_token: Option<u64>The token of the swap gate this handoff opened, so a build that lost the seat cannot spawn.
awaiting: boolThe judgment turn forge sent is running.
judgment_uuid: Option<String>The id the judgment prompt was sent under, so the swap waits for THAT prompt’s turn rather than for whatever turn ends next.
judgment_started: boolThe CLI’s own lifecycle frame said the judgment prompt started. A turn that ends without it is not the judgment turn.
judgment: Option<String>The last assistant text seen while that turn ran.
Implementations§
Source§impl HandoffState
impl HandoffState
Sourcepub fn in_progress(&self) -> bool
pub fn in_progress(&self) -> bool
Whether a handoff owns this seat’s next turn boundary.
Trait Implementations§
Source§impl Clone for HandoffState
impl Clone for HandoffState
Source§impl Debug for HandoffState
impl Debug for HandoffState
Source§impl Default for HandoffState
impl Default for HandoffState
impl Eq for HandoffState
Source§impl PartialEq for HandoffState
impl PartialEq for HandoffState
impl StructuralPartialEq for HandoffState
Auto Trait Implementations§
impl Freeze for HandoffState
impl RefUnwindSafe for HandoffState
impl Send for HandoffState
impl Sync for HandoffState
impl Unpin for HandoffState
impl UnsafeUnpin for HandoffState
impl UnwindSafe for HandoffState
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more