pub struct InMemoryRunStore { /* private fields */ }Expand description
In-memory store — for tests and ephemeral Runs.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryRunStore
impl Default for InMemoryRunStore
Source§fn default() -> InMemoryRunStore
fn default() -> InMemoryRunStore
Returns the “default value” for a type. Read more
Source§impl RunStore for InMemoryRunStore
impl RunStore for InMemoryRunStore
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
run: &'life1 Run,
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Run>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for InMemoryRunStore
impl RefUnwindSafe for InMemoryRunStore
impl Send for InMemoryRunStore
impl Sync for InMemoryRunStore
impl Unpin for InMemoryRunStore
impl UnsafeUnpin for InMemoryRunStore
impl UnwindSafe for InMemoryRunStore
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