pub struct InMemorySnapshotStore<S> { /* private fields */ }Expand description
In-memory snapshot store: one snapshot per run (latest overwrites).
Implementations§
Trait Implementations§
Source§impl<S: Clone + Send + Sync> SnapshotStore<S> for InMemorySnapshotStore<S>
impl<S: Clone + Send + Sync> SnapshotStore<S> for InMemorySnapshotStore<S>
Source§fn load_latest(
&self,
run_id: &RunId,
) -> Result<Option<Snapshot<S>>, KernelError>
fn load_latest( &self, run_id: &RunId, ) -> Result<Option<Snapshot<S>>, KernelError>
Loads the latest snapshot for the run, if any.
Auto Trait Implementations§
impl<S> !Freeze for InMemorySnapshotStore<S>
impl<S> RefUnwindSafe for InMemorySnapshotStore<S>
impl<S> Send for InMemorySnapshotStore<S>where
S: Send,
impl<S> Sync for InMemorySnapshotStore<S>
impl<S> Unpin for InMemorySnapshotStore<S>where
S: Unpin,
impl<S> UnsafeUnpin for InMemorySnapshotStore<S>
impl<S> UnwindSafe for InMemorySnapshotStore<S>
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