pub struct FileWorkflowRunRepository { /* private fields */ }Expand description
One directory per run: a compact atomic snapshot plus an append-only JSONL
event journal. Each event is synced before the corresponding snapshot is
replaced, and callers publish only after commit returns.
Implementations§
Trait Implementations§
Source§impl WorkflowRunRepository for FileWorkflowRunRepository
impl WorkflowRunRepository for FileWorkflowRunRepository
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 WorkflowRunSnapshot,
event: &'life2 WorkflowRunEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn commit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 WorkflowRunSnapshot,
event: &'life2 WorkflowRunEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowRunSnapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn events_since<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
sequence: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowRunEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_run_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for FileWorkflowRunRepository
impl !UnwindSafe for FileWorkflowRunRepository
impl Freeze for FileWorkflowRunRepository
impl Send for FileWorkflowRunRepository
impl Sync for FileWorkflowRunRepository
impl Unpin for FileWorkflowRunRepository
impl UnsafeUnpin for FileWorkflowRunRepository
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