pub struct MemoryProjectionCheckpointStore { /* private fields */ }Expand description
In-memory monotonically advancing projection checkpoints.
Implementations§
Trait Implementations§
Source§impl Default for MemoryProjectionCheckpointStore
impl Default for MemoryProjectionCheckpointStore
Source§fn default() -> MemoryProjectionCheckpointStore
fn default() -> MemoryProjectionCheckpointStore
Returns the “default value” for a type. Read more
Source§impl ProjectionCheckpointStore for MemoryProjectionCheckpointStore
impl ProjectionCheckpointStore for MemoryProjectionCheckpointStore
Source§fn load<'a>(
&'a self,
projection: &'a ProjectionId,
) -> BoxFuture<'a, SoapResult<Option<GlobalPosition>>>
fn load<'a>( &'a self, projection: &'a ProjectionId, ) -> BoxFuture<'a, SoapResult<Option<GlobalPosition>>>
Loads the last completed position, or
None for a new projection.Source§fn store<'a>(
&'a self,
projection: &'a ProjectionId,
position: GlobalPosition,
) -> BoxFuture<'a, SoapResult<()>>
fn store<'a>( &'a self, projection: &'a ProjectionId, position: GlobalPosition, ) -> BoxFuture<'a, SoapResult<()>>
Stores a monotonically advancing completed position.
Auto Trait Implementations§
impl !Freeze for MemoryProjectionCheckpointStore
impl RefUnwindSafe for MemoryProjectionCheckpointStore
impl Send for MemoryProjectionCheckpointStore
impl Sync for MemoryProjectionCheckpointStore
impl Unpin for MemoryProjectionCheckpointStore
impl UnsafeUnpin for MemoryProjectionCheckpointStore
impl UnwindSafe for MemoryProjectionCheckpointStore
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