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 ProcessOutputSinkwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Chan<ProcessOutputChunk, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<ProcessOutputChunk, Semaphore>>>: Freeze,
impl Move for ProcessOutputSink
impl RefUnwindSafe for ProcessOutputSink
impl Send for ProcessOutputSink
impl Sync for ProcessOutputSink
impl Unpin for ProcessOutputSink
impl UnsafeUnpin for ProcessOutputSinkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Chan<ProcessOutputChunk, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<ProcessOutputChunk, Semaphore>>>: UnsafeUnpin,
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