pub struct JsonlFileSink { /* private fields */ }Expand description
JSONL file sink with a salted commitment chain.
Writes transcript.jsonl to a target directory, one line per call,
flushed and synced before returning. The transcript is self-identifying:
the chain of its last line is the fingerprint, and no sidecar file is
written.
Implementations§
Trait Implementations§
Source§impl Debug for JsonlFileSink
impl Debug for JsonlFileSink
Source§impl TranscriptSink for JsonlFileSink
impl TranscriptSink for JsonlFileSink
Source§fn begin(&mut self, header: &TranscriptHeader) -> Result<()>
fn begin(&mut self, header: &TranscriptHeader) -> Result<()>
Write the header line. Must be called once, before any fact. Read more
Source§fn record(
&mut self,
at: DateTime<Utc>,
level: Level,
fact: &StepFact,
) -> Result<()>
fn record( &mut self, at: DateTime<Utc>, level: Level, fact: &StepFact, ) -> Result<()>
Record a single fact at
level, stamped with the caller-supplied
event time at. Must persist before returning, the file-backed
implementation calls sync_data so a power loss after record returns
cannot drop the fact. Read moreAuto Trait Implementations§
impl Freeze for JsonlFileSink
impl RefUnwindSafe for JsonlFileSink
impl Send for JsonlFileSink
impl Sync for JsonlFileSink
impl Unpin for JsonlFileSink
impl UnsafeUnpin for JsonlFileSink
impl UnwindSafe for JsonlFileSink
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