pub struct MemoryCommandIdempotencyStore { /* private fields */ }Implementations§
Source§impl MemoryCommandIdempotencyStore
impl MemoryCommandIdempotencyStore
Sourcepub fn with_clock(clock: Arc<dyn Clock>) -> Self
pub fn with_clock(clock: Arc<dyn Clock>) -> Self
Builds an empty store that reads the time from clock, which is what decides when a
stored result has outlived its retention.
pub fn new( records: impl IntoIterator<Item = CommandIdempotencyRecord>, ) -> Result<Self, ServiceError>
Trait Implementations§
Source§impl CommandIdempotencyStore for MemoryCommandIdempotencyStore
impl CommandIdempotencyStore for MemoryCommandIdempotencyStore
fn execute<'life0, 'async_trait>(
&'life0 self,
input: CommandIdempotencyInput,
operation: CommandOperation,
) -> Pin<Box<dyn Future<Output = Result<CommandIdempotencyResult, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for MemoryCommandIdempotencyStore
impl !RefUnwindSafe for MemoryCommandIdempotencyStore
impl !UnwindSafe for MemoryCommandIdempotencyStore
impl Send for MemoryCommandIdempotencyStore
impl Sync for MemoryCommandIdempotencyStore
impl Unpin for MemoryCommandIdempotencyStore
impl UnsafeUnpin for MemoryCommandIdempotencyStore
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