pub struct InMemoryEffectStore { /* private fields */ }Expand description
In-memory effect store with atomic idempotency indexing.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryEffectStore
impl Clone for InMemoryEffectStore
Source§fn clone(&self) -> InMemoryEffectStore
fn clone(&self) -> InMemoryEffectStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryEffectStore
impl Debug for InMemoryEffectStore
Source§impl Default for InMemoryEffectStore
impl Default for InMemoryEffectStore
Source§fn default() -> InMemoryEffectStore
fn default() -> InMemoryEffectStore
Returns the “default value” for a type. Read more
Source§impl EffectStore for InMemoryEffectStore
impl EffectStore for InMemoryEffectStore
Source§fn load(
&self,
id: EffectId,
) -> Result<Option<EffectRecord>, EffectExecutorError>
fn load( &self, id: EffectId, ) -> Result<Option<EffectRecord>, EffectExecutorError>
Loads a record by effect identity. Read more
Source§fn find_by_idempotency(
&self,
capability_id: CapabilityId,
key: &str,
) -> Result<Option<EffectRecord>, EffectExecutorError>
fn find_by_idempotency( &self, capability_id: CapabilityId, key: &str, ) -> Result<Option<EffectRecord>, EffectExecutorError>
Resolves a logical effect by capability-scoped idempotency key. Read more
Source§fn compare_and_swap(
&self,
record: &EffectRecord,
expected_revision: Option<u64>,
) -> Result<(), EffectExecutorError>
fn compare_and_swap( &self, record: &EffectRecord, expected_revision: Option<u64>, ) -> Result<(), EffectExecutorError>
Creates or atomically replaces a record. Read more
Auto Trait Implementations§
impl Freeze for InMemoryEffectStore
impl RefUnwindSafe for InMemoryEffectStore
impl Send for InMemoryEffectStore
impl Sync for InMemoryEffectStore
impl Unpin for InMemoryEffectStore
impl UnsafeUnpin for InMemoryEffectStore
impl UnwindSafe for InMemoryEffectStore
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