pub struct NoopReporter;Expand description
The default Reporter: silently swallows everything.
Every attachable engine and client defaults to this, so consumers that embed core as a library (e.g. the desktop GUI) never receive terminal chatter they did not ask for.
§Examples
use subx_core::core::report::{AiUsage, NoopReporter, ProgressEvent, Reporter};
let reporter = NoopReporter;
reporter.diagnostic("ignored");
reporter.warn("ignored");
reporter.ai_usage(&AiUsage {
model: "gpt-4.1-mini".to_string(),
prompt_tokens: 10,
completion_tokens: 5,
total_tokens: 15,
});
reporter.progress(&ProgressEvent::Message("ignored"));Trait Implementations§
Source§impl Reporter for NoopReporter
impl Reporter for NoopReporter
Source§fn diagnostic(&self, message: &str)
fn diagnostic(&self, message: &str)
Human-oriented detail about work in progress. Not a failure. Read more
Source§fn warn(&self, message: &str)
fn warn(&self, message: &str)
A non-fatal problem the operation recovered from or worked around. Read more
Source§fn progress(&self, event: &ProgressEvent<'_>)
fn progress(&self, event: &ProgressEvent<'_>)
An event on the long-running-work progress stream. Read more
Auto Trait Implementations§
impl Freeze for NoopReporter
impl RefUnwindSafe for NoopReporter
impl Send for NoopReporter
impl Sync for NoopReporter
impl Unpin for NoopReporter
impl UnsafeUnpin for NoopReporter
impl UnwindSafe for NoopReporter
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