pub struct Printer {
pub config: OutputConfig,
}Fields§
§config: OutputConfigImplementations§
Source§impl Printer
impl Printer
pub fn new(config: OutputConfig) -> Self
pub fn with_session(self, session_id: String) -> Self
pub fn clone_with_session(&self, session_id: String) -> Self
pub fn print(&self, phase: Phase, message: &str)
Sourcepub fn print_tool_call(&self, tool: &str, display: &str, result: &str)
pub fn print_tool_call(&self, tool: &str, display: &str, result: &str)
display is a pre-formatted human-readable description of the call
(not raw JSON), produced by describe_tool_call in loop_runner.
pub fn print_error(&self, message: &str)
Sourcepub fn print_streaming_start(&self)
pub fn print_streaming_start(&self)
Print the [plan] prefix line for a streaming response.
Sourcepub fn print_streaming_token(&self, token: &str)
pub fn print_streaming_token(&self, token: &str)
Print a single streaming token inline (no newline).
Sourcepub fn print_streaming_end(&self)
pub fn print_streaming_end(&self)
Finish a streaming response with a trailing newline.
pub fn print_diff(&self, label: &str, old: &str, new: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Printer
impl RefUnwindSafe for Printer
impl Send for Printer
impl Sync for Printer
impl Unpin for Printer
impl UnsafeUnpin for Printer
impl UnwindSafe for Printer
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