Struct ConsolePrettyExporter
pub struct ConsolePrettyExporter(());Expand description
Exporter that pretty prints telemetry messages to stderr.
This exporter only supports log messages (e.g. error!("foo")).
Only intended for experimentation and examples.
`telemetry-ui` is strongly recommended for anything beyond experimentation.
§Examples
use veecle_telemetry::collector::{ConsolePrettyExporter, set_exporter};
use veecle_telemetry::protocol::ExecutionId;
let execution_id = ExecutionId::random(&mut rand::rng());
set_exporter(execution_id, &ConsolePrettyExporter::DEFAULT).unwrap();Tuple Fields§
§0: ()Implementations§
§impl ConsolePrettyExporter
impl ConsolePrettyExporter
pub const DEFAULT: ConsolePrettyExporter
pub const DEFAULT: ConsolePrettyExporter
A const version of ConsolePrettyExporter::default() to allow use as a &'static.
Trait Implementations§
§impl Debug for ConsolePrettyExporter
impl Debug for ConsolePrettyExporter
§impl Default for ConsolePrettyExporter
impl Default for ConsolePrettyExporter
§fn default() -> ConsolePrettyExporter
fn default() -> ConsolePrettyExporter
Returns the “default value” for a type. Read more
§impl Export for ConsolePrettyExporter
impl Export for ConsolePrettyExporter
§fn export(&self, _: InstanceMessage<'_>)
fn export(&self, _: InstanceMessage<'_>)
Exports a telemetry message. Read more
Auto Trait Implementations§
impl Freeze for ConsolePrettyExporter
impl RefUnwindSafe for ConsolePrettyExporter
impl Send for ConsolePrettyExporter
impl Sync for ConsolePrettyExporter
impl Unpin for ConsolePrettyExporter
impl UnwindSafe for ConsolePrettyExporter
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