pub struct ProcessOutputSink { /* private fields */ }Expand description
Non-blocking sink for forwarding bounded live process output chunks to UI observers.
Implementations§
Source§impl ProcessOutputSink
impl ProcessOutputSink
Sourcepub fn new(call_id: ToolCallId, sender: Sender<ProcessOutputChunk>) -> Self
pub fn new(call_id: ToolCallId, sender: Sender<ProcessOutputChunk>) -> Self
Creates a live output sink bound to one active tool call.
Sourcepub fn emit(&self, stream: ToolOutputStream, bytes: &[u8])
pub fn emit(&self, stream: ToolOutputStream, bytes: &[u8])
Emits a bounded chunk without ever blocking the process reader task.
Trait Implementations§
Source§impl Clone for ProcessOutputSink
impl Clone for ProcessOutputSink
Auto Trait Implementations§
impl Forget for ProcessOutputSink
impl Freeze for ProcessOutputSink
impl Move for ProcessOutputSink
impl RefUnwindSafe for ProcessOutputSink
impl Send for ProcessOutputSink
impl Sync for ProcessOutputSink
impl Unpin for ProcessOutputSink
impl UnsafeUnpin for ProcessOutputSink
impl UnwindSafe for ProcessOutputSink
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