pub struct TuiForwardSink { /* private fields */ }Expand description
A sink that forwards ABK OutputEvents to the message channel.
Includes a 3-state atomic state machine (IDLE/REASONING/CONTENT) that inserts blank separator lines when transitioning between reasoning and content streams, so the frontend can distinguish them visually.
Implementations§
Source§impl TuiForwardSink
impl TuiForwardSink
pub fn new(tx: UnboundedSender<TuiMessage>) -> Self
Trait Implementations§
Source§impl OutputSink for TuiForwardSink
impl OutputSink for TuiForwardSink
Source§fn emit(&self, event: OutputEvent)
fn emit(&self, event: OutputEvent)
Emit a single structured output event.
Auto Trait Implementations§
impl !Freeze for TuiForwardSink
impl RefUnwindSafe for TuiForwardSink
impl Send for TuiForwardSink
impl Sync for TuiForwardSink
impl Unpin for TuiForwardSink
impl UnsafeUnpin for TuiForwardSink
impl UnwindSafe for TuiForwardSink
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