pub struct MintedReasoningLifecycle { /* private fields */ }Expand description
The lifecycle state for one stream’s constant-key reasoning block.
Owns the open/close bookkeeping the adapters used to hand-roll; an
adapter never touches a reasoning_open flag or emits a lifecycle event
directly.
Implementations§
Source§impl MintedReasoningLifecycle
impl MintedReasoningLifecycle
Sourcepub fn new(key: StreamPartId) -> Self
pub fn new(key: StreamPartId) -> Self
A lifecycle for the given per-stream constant minted key.
Sourcepub fn emit_chunk<R>(
&mut self,
parts: ChunkParts<R>,
out: &mut AdapterOutput<R>,
)
pub fn emit_chunk<R>( &mut self, parts: ChunkParts<R>, out: &mut AdapterOutput<R>, )
Emit one declared chunk as the canonical event sequence.
Order and boundary are derived, not stated per adapter:
- reasoning delta (opens the block);
- a wire-carried signature closes the block authoritatively;
- other content in the chunk closes a still-open block with a
synthesized silent end (
wire_sent: false— the wire never spelled the boundary, so downstream must not observe a fabricated event); - text, then tool events.
Auto Trait Implementations§
impl Freeze for MintedReasoningLifecycle
impl RefUnwindSafe for MintedReasoningLifecycle
impl Send for MintedReasoningLifecycle
impl Sync for MintedReasoningLifecycle
impl Unpin for MintedReasoningLifecycle
impl UnsafeUnpin for MintedReasoningLifecycle
impl UnwindSafe for MintedReasoningLifecycle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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