pub struct InMemorySnapshotStore { /* private fields */ }Expand description
In-memory snapshot storage for tests and short-lived applications.
Implementations§
Source§impl InMemorySnapshotStore
impl InMemorySnapshotStore
Sourcepub fn new() -> InMemorySnapshotStore
pub fn new() -> InMemorySnapshotStore
Empty snapshot storage.
Trait Implementations§
Source§impl Default for InMemorySnapshotStore
impl Default for InMemorySnapshotStore
Source§fn default() -> InMemorySnapshotStore
fn default() -> InMemorySnapshotStore
Returns the “default value” for a type. Read more
Source§impl SnapshotStore for InMemorySnapshotStore
impl SnapshotStore for InMemorySnapshotStore
Source§fn load_latest<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: TypedId<SessionMarker>,
projection: &'life1 str,
schema_version: u32,
through: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Option<ProjectionSnapshot>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemorySnapshotStore: 'async_trait,
fn load_latest<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: TypedId<SessionMarker>,
projection: &'life1 str,
schema_version: u32,
through: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Option<ProjectionSnapshot>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemorySnapshotStore: 'async_trait,
Most recent compatible snapshot at or before
through.Auto Trait Implementations§
impl !Freeze for InMemorySnapshotStore
impl RefUnwindSafe for InMemorySnapshotStore
impl Send for InMemorySnapshotStore
impl Sync for InMemorySnapshotStore
impl Unpin for InMemorySnapshotStore
impl UnsafeUnpin for InMemorySnapshotStore
impl UnwindSafe for InMemorySnapshotStore
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