pub struct JsonlSink { /* private fields */ }Expand description
Append-only JSONL sink.
Thread-safe: a single Arc<JsonlSink> can be shared across threads.
Implementations§
Trait Implementations§
Source§impl Sink for JsonlSink
impl Sink for JsonlSink
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 JsonlSink
impl RefUnwindSafe for JsonlSink
impl Send for JsonlSink
impl Sync for JsonlSink
impl Unpin for JsonlSink
impl UnwindSafe for JsonlSink
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