pub struct InMemoryCommandDedup { /* private fields */ }Trait Implementations§
Source§impl Clone for InMemoryCommandDedup
impl Clone for InMemoryCommandDedup
Source§impl CommandDedupPort for InMemoryCommandDedup
impl CommandDedupPort for InMemoryCommandDedup
Source§fn first_seen<'life0, 'life1, 'async_trait>(
&'life0 self,
command_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn first_seen<'life0, 'life1, 'async_trait>(
&'life0 self,
command_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns true when the command ID is seen for the first time.
Returns false when the command ID was already processed/reserved.
Source§fn forget_seen<'life0, 'life1, 'async_trait>(
&'life0 self,
command_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn forget_seen<'life0, 'life1, 'async_trait>(
&'life0 self,
command_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), DomainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove command ID reservation/marker.
Used as compensation when command execution fails.
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryCommandDedup
impl !UnwindSafe for InMemoryCommandDedup
impl Freeze for InMemoryCommandDedup
impl Send for InMemoryCommandDedup
impl Sync for InMemoryCommandDedup
impl Unpin for InMemoryCommandDedup
impl UnsafeUnpin for InMemoryCommandDedup
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