pub struct IdempotencyStore { /* private fields */ }Expand description
In-memory idempotency store for remote effects.
Implementations§
Source§impl IdempotencyStore
impl IdempotencyStore
pub fn new() -> Self
Sourcepub fn register_or_replay(
&self,
key: IdempotencyKey,
computation: &ComputationName,
request_bytes: &[u8],
outcome: &[u8],
) -> Result<IdempotencyDecision>
pub fn register_or_replay( &self, key: IdempotencyKey, computation: &ComputationName, request_bytes: &[u8], outcome: &[u8], ) -> Result<IdempotencyDecision>
Register outcome for (key, computation, request) or replay prior value.
§Errors
Returns FrankenError::Internal if the same idempotency key is reused
with different request bytes or a different computation name.
Trait Implementations§
Source§impl Debug for IdempotencyStore
impl Debug for IdempotencyStore
Source§impl Default for IdempotencyStore
impl Default for IdempotencyStore
Source§fn default() -> IdempotencyStore
fn default() -> IdempotencyStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for IdempotencyStore
impl RefUnwindSafe for IdempotencyStore
impl Send for IdempotencyStore
impl Sync for IdempotencyStore
impl Unpin for IdempotencyStore
impl UnsafeUnpin for IdempotencyStore
impl UnwindSafe for IdempotencyStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).