pub struct LogWriter;Expand description
Human-readable event printer for stdout.
Prints [seq] [event-type] key=value ... with relevant metadata.
Useful for debugging, demos, or understanding supervisor flow.
Trait Implementations§
Source§impl Subscribe for LogWriter
impl Subscribe for LogWriter
Source§fn on_event<'life0, 'life1, 'async_trait>(
&'life0 self,
e: &'life1 Event,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_event<'life0, 'life1, 'async_trait>(
&'life0 self,
e: &'life1 Event,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Processes a single event. Read more
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the subscriber name used in logs/metrics and overflow/panic events. Read more
Source§fn queue_capacity(&self) -> usize
fn queue_capacity(&self) -> usize
Returns the preferred queue capacity for this subscriber. Read more
Auto Trait Implementations§
impl Freeze for LogWriter
impl RefUnwindSafe for LogWriter
impl Send for LogWriter
impl Sync for LogWriter
impl Unpin for LogWriter
impl UnwindSafe for LogWriter
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