starbase_console/reporter.rs
1use crate::stream::ConsoleStream;
2use std::fmt;
3
4pub trait Reporter: fmt::Debug + Send + Sync {
5 fn inherit_streams(&mut self, _err: ConsoleStream, _out: ConsoleStream) {}
6
7 #[cfg(feature = "ui")]
8 fn inherit_theme(&mut self, _theme: crate::theme::ConsoleTheme) {}
9}
10
11pub type BoxedReporter = Box<dyn Reporter>;
12
13#[derive(Debug, Default)]
14pub struct EmptyReporter;
15
16impl Reporter for EmptyReporter {}