pub struct ConsoleSubscriber { /* private fields */ }Expand description
Writes formatted trace events to stderr.
Output format mirrors the Phase 1 dev-tools terminal layout:
[MOUNT] HomeScreen src/screens/home.rs:12
[ATOM] FEED.set() 64 items
[REBUILD] FeedList cause: FEED 0.8ms
[FRAME] #847 2.1ms ✓
[REQUEST] GET /api/feed 200 145ms cache:missImplementations§
Source§impl ConsoleSubscriber
impl ConsoleSubscriber
Sourcepub fn with_filter(filter: ConsoleFilter) -> Self
pub fn with_filter(filter: ConsoleFilter) -> Self
Creates a new console subscriber with the given filter.
Sourcepub fn high_frequency(self, on: bool) -> Self
pub fn high_frequency(self, on: bool) -> Self
Opt into printing high-frequency events (AtomRead/FrameStart/…) — off by default (D123/O1). Only enable for deep, short-lived profiling; leaving it on floods the terminal every frame.
Sourcepub fn event_count(&self) -> usize
pub fn event_count(&self) -> usize
Returns the total number of events received (regardless of filter).
pub fn format(event: &RosaceTrace) -> String
Trait Implementations§
Source§impl Default for ConsoleSubscriber
impl Default for ConsoleSubscriber
Source§impl TraceSubscriber for ConsoleSubscriber
impl TraceSubscriber for ConsoleSubscriber
Source§fn on_trace(&self, event: &RosaceTrace)
fn on_trace(&self, event: &RosaceTrace)
Called for every emitted
RosaceTrace event.Auto Trait Implementations§
impl !Freeze for ConsoleSubscriber
impl RefUnwindSafe for ConsoleSubscriber
impl Send for ConsoleSubscriber
impl Sync for ConsoleSubscriber
impl Unpin for ConsoleSubscriber
impl UnsafeUnpin for ConsoleSubscriber
impl UnwindSafe for ConsoleSubscriber
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