pub struct Reporter {
pub stats: Arc<Stats>,
/* private fields */
}Expand description
The engine’s handle for publishing telemetry. Cloneable into every worker.
Fields§
§stats: Arc<Stats>Implementations§
Source§impl Reporter
impl Reporter
pub fn new() -> (Self, UnboundedReceiver<Event>)
Sourcepub fn silent() -> Self
pub fn silent() -> Self
A reporter that records counters but publishes nothing — used in tests and by code paths with no consumer attached.
pub fn emit(&self, event: Event)
pub fn note(&self, level: NoteLevel, message: impl Into<String>)
pub fn info(&self, message: impl Into<String>)
pub fn warn(&self, message: impl Into<String>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reporter
impl RefUnwindSafe for Reporter
impl Send for Reporter
impl Sync for Reporter
impl Unpin for Reporter
impl UnsafeUnpin for Reporter
impl UnwindSafe for Reporter
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