pub struct CollectSink(pub Arc<Mutex<String>>);Expand description
A sink that accumulates everything it is given into a shared buffer.
Used by the parallel fan-out: the sub-agent pane holds one label and one log, so N concurrent sidechains streaming live would interleave into unreadable output. Each slot collects here instead and is flushed as one labelled block when it finishes.
Tuple Fields§
§0: Arc<Mutex<String>>Implementations§
Trait Implementations§
Source§impl Clone for CollectSink
impl Clone for CollectSink
Source§fn clone(&self) -> CollectSink
fn clone(&self) -> CollectSink
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 CollectSink
impl Debug for CollectSink
Source§impl Default for CollectSink
impl Default for CollectSink
Source§fn default() -> CollectSink
fn default() -> CollectSink
Returns the “default value” for a type. Read more
Source§impl RenderSink for CollectSink
impl RenderSink for CollectSink
Source§fn visible_text(&mut self, text: &str)
fn visible_text(&mut self, text: &str)
Receives ordinary visible output.
Source§fn think_text(&mut self, _text: &str)
fn think_text(&mut self, _text: &str)
Receives text produced inside a
<think> block.Source§fn tool_text(&mut self, text: &str)
fn tool_text(&mut self, text: &str)
Receives tool banner output (never markdown); defaults to visible.
Source§fn error_text(&mut self, text: &str)
fn error_text(&mut self, text: &str)
Receives error banners (e.g.
[invalid tool call: ...]); sinks should
style these red. Defaults to tool text.Auto Trait Implementations§
impl Freeze for CollectSink
impl RefUnwindSafe for CollectSink
impl Send for CollectSink
impl Sync for CollectSink
impl Unpin for CollectSink
impl UnsafeUnpin for CollectSink
impl UnwindSafe for CollectSink
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