pub struct NullSink;Expand description
A no-op stream sink for non-interactive mode.
Trait Implementations§
Source§impl StreamSink for NullSink
impl StreamSink for NullSink
fn on_text(&self, _: &str)
fn on_tool_start(&self, _: &str, _: &Value)
fn on_tool_result(&self, _: &str, _: &ToolResult)
fn on_error(&self, _: &str)
fn on_thinking(&self, _text: &str)
Source§fn on_turn_start(&self, _turn: usize)
fn on_turn_start(&self, _turn: usize)
Called at the start of each agent turn (1-indexed).
fn on_turn_complete(&self, _turn: usize)
fn on_usage(&self, _usage: &Usage)
fn on_compact(&self, _freed_tokens: u64)
fn on_warning(&self, _msg: &str)
Auto Trait Implementations§
impl Freeze for NullSink
impl RefUnwindSafe for NullSink
impl Send for NullSink
impl Sync for NullSink
impl Unpin for NullSink
impl UnsafeUnpin for NullSink
impl UnwindSafe for NullSink
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