pub struct OffThreadSpectraSink { /* private fields */ }Expand description
Sink that enqueues NDJSON + optional console mirror work for a background thread.
Implementations§
Source§impl OffThreadSpectraSink
impl OffThreadSpectraSink
Sourcepub fn new(ndjson: NdjsonFileSink) -> Self
pub fn new(ndjson: NdjsonFileSink) -> Self
Spawn the background writer thread and wire the shared emit queue.
Sourcepub fn ndjson(&self) -> &NdjsonFileSink
pub fn ndjson(&self) -> &NdjsonFileSink
Underlying NDJSON file sink (used by the worker thread).
Trait Implementations§
Source§impl SpectraSink for OffThreadSpectraSink
impl SpectraSink for OffThreadSpectraSink
Auto Trait Implementations§
impl !RefUnwindSafe for OffThreadSpectraSink
impl !UnwindSafe for OffThreadSpectraSink
impl Freeze for OffThreadSpectraSink
impl Send for OffThreadSpectraSink
impl Sync for OffThreadSpectraSink
impl Unpin for OffThreadSpectraSink
impl UnsafeUnpin for OffThreadSpectraSink
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