pub struct JsonlEventStore { /* private fields */ }Expand description
JSONL-based event store
Stores events in JSONL files, one file per execution.
Directory structure: {base_dir}/{execution_id}.jsonl
Implementations§
Trait Implementations§
Source§impl Debug for JsonlEventStore
impl Debug for JsonlEventStore
Source§impl EventStore for JsonlEventStore
impl EventStore for JsonlEventStore
Source§fn append<'life0, 'async_trait>(
&'life0 self,
event: ExecutionEvent,
) -> Pin<Box<dyn Future<Output = Result<EventLogEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
event: ExecutionEvent,
) -> Pin<Box<dyn Future<Output = Result<EventLogEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Append an event to the log
Source§fn get_by_execution<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 ExecutionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventLogEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_by_execution<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 ExecutionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventLogEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get events for an execution
Auto Trait Implementations§
impl !Freeze for JsonlEventStore
impl RefUnwindSafe for JsonlEventStore
impl Send for JsonlEventStore
impl Sync for JsonlEventStore
impl Unpin for JsonlEventStore
impl UnsafeUnpin for JsonlEventStore
impl UnwindSafe for JsonlEventStore
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