pub struct StdoutSink { /* private fields */ }Expand description
Sink that writes each event to stdout, pretty-printed.
The internal Mutex serializes writes so output doesn’t interleave.
Implementations§
Source§impl StdoutSink
impl StdoutSink
Trait Implementations§
Source§impl Default for StdoutSink
impl Default for StdoutSink
Source§impl Sink for StdoutSink
impl Sink for StdoutSink
Source§fn emit<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 SinkEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn emit<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 SinkEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Emit one event. Implementations should be non-blocking when possible.
Auto Trait Implementations§
impl !Freeze for StdoutSink
impl RefUnwindSafe for StdoutSink
impl Send for StdoutSink
impl Sync for StdoutSink
impl Unpin for StdoutSink
impl UnwindSafe for StdoutSink
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