pub struct InMemoryRunLogStore { /* private fields */ }Expand description
In-process, in-memory RunLogStore. The default when no backend is wired.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryRunLogStore
impl Default for InMemoryRunLogStore
Source§fn default() -> InMemoryRunLogStore
fn default() -> InMemoryRunLogStore
Returns the “default value” for a type. Read more
Source§impl RunLogStore for InMemoryRunLogStore
impl RunLogStore for InMemoryRunLogStore
Source§fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
run_log: &'life1 RunLog,
) -> Pin<Box<dyn Future<Output = Result<(), RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
run_log: &'life1 RunLog,
) -> Pin<Box<dyn Future<Output = Result<(), RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist (insert or replace) a
RunLog keyed by its run_id.Source§fn get<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = Result<Option<RunLog>, RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = Result<Option<RunLog>, RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a
RunLog by run_id. Ok(None) when not present.Source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 RunLogQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<RunLog>, RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 RunLogQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<RunLog>, RunLogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List runs most-recent-first, filtered and paginated per
RunLogQuery.
All filters (agent, status) are applied before limit/offset so the
returned page reflects the full filtered set, not a post-filtered slice.Auto Trait Implementations§
impl !Freeze for InMemoryRunLogStore
impl !RefUnwindSafe for InMemoryRunLogStore
impl !UnwindSafe for InMemoryRunLogStore
impl Send for InMemoryRunLogStore
impl Sync for InMemoryRunLogStore
impl Unpin for InMemoryRunLogStore
impl UnsafeUnpin for InMemoryRunLogStore
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