pub struct TurnLifecycleGate {
pub saw_running: bool,
pub saw_stream_payload: bool,
pub saw_turn_progress: bool,
}Expand description
Per-turn progress flags (DaemonSession parity; not shared across chats).
Fields§
§saw_running: boolSaw status=running for this turn.
saw_stream_payload: boolSaw any event payload after filtering.
saw_turn_progress: boolSaw non-intake turn progress (messages / step customs).
Implementations§
Source§impl TurnLifecycleGate
impl TurnLifecycleGate
Sourcepub fn observe(&mut self, msg: &Value)
pub fn observe(&mut self, msg: &Value)
Update gate flags from one decoded inbound message (status or event frame).
Sourcepub fn observe_status(&mut self, state: &str)
pub fn observe_status(&mut self, state: &str)
Observe a status frame.
Sourcepub fn observe_event(&mut self, mode: &str, data: &Value)
pub fn observe_event(&mut self, mode: &str, data: &Value)
Observe an event frame.
Sourcepub fn allow_stream_end(&self) -> bool
pub fn allow_stream_end(&self) -> bool
Whether turn-scoped stream.end may end the turn.
Sourcepub fn allow_idle_complete(&self) -> bool
pub fn allow_idle_complete(&self) -> bool
Whether status=idle may soft-complete the turn.
Trait Implementations§
Source§impl Clone for TurnLifecycleGate
impl Clone for TurnLifecycleGate
Source§fn clone(&self) -> TurnLifecycleGate
fn clone(&self) -> TurnLifecycleGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TurnLifecycleGate
impl Debug for TurnLifecycleGate
Source§impl Default for TurnLifecycleGate
impl Default for TurnLifecycleGate
Source§fn default() -> TurnLifecycleGate
fn default() -> TurnLifecycleGate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnLifecycleGate
impl RefUnwindSafe for TurnLifecycleGate
impl Send for TurnLifecycleGate
impl Sync for TurnLifecycleGate
impl Unpin for TurnLifecycleGate
impl UnsafeUnpin for TurnLifecycleGate
impl UnwindSafe for TurnLifecycleGate
Blanket Implementations§
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
Mutably borrows from an owned value. Read more