pub struct NullOutput;Expand description
Discards all output. Use in tests where UI side-effects are unwanted.
Trait Implementations§
Source§impl UserOutput for NullOutput
impl UserOutput for NullOutput
fn info(&self, _msg: &str)
fn warn(&self, _msg: &str)
fn error(&self, _msg: &str)
fn assistant_text(&self, _text: &str)
fn tool_call(&self, _tool_name: &str, _input_preview: &str)
fn tool_ok(&self)
fn tool_err(&self, _err_msg: &str)
Source§fn write_chunk(&self, chunk: &str)
fn write_chunk(&self, chunk: &str)
Emit a single streaming chunk of assistant text. Read more
Auto Trait Implementations§
impl Freeze for NullOutput
impl RefUnwindSafe for NullOutput
impl Send for NullOutput
impl Sync for NullOutput
impl Unpin for NullOutput
impl UnsafeUnpin for NullOutput
impl UnwindSafe for NullOutput
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