pub struct JsonlWriter { /* private fields */ }Expand description
Streams events as JSONL (one JSON object per line) to any Write + Send.
Wraps the writer in a Mutex so JsonlWriter is Send + Sync and can be
shared across the coordinator threads.
Implementations§
Trait Implementations§
Source§impl EventSink for JsonlWriter
impl EventSink for JsonlWriter
fn emit(&self, event: &CascadeEvent)
Auto Trait Implementations§
impl !Freeze for JsonlWriter
impl RefUnwindSafe for JsonlWriter
impl Send for JsonlWriter
impl Sync for JsonlWriter
impl Unpin for JsonlWriter
impl UnsafeUnpin for JsonlWriter
impl UnwindSafe for JsonlWriter
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