pub struct InMemoryCommandDedup { /* private fields */ }Trait Implementations§
Source§impl Clone for InMemoryCommandDedup
impl Clone for InMemoryCommandDedup
Source§fn clone(&self) -> InMemoryCommandDedup
fn clone(&self) -> InMemoryCommandDedup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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, CamelError>> + 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, CamelError>> + 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<(), CamelError>> + 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<(), CamelError>> + 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.
Source§impl Default for InMemoryCommandDedup
impl Default for InMemoryCommandDedup
Source§fn default() -> InMemoryCommandDedup
fn default() -> InMemoryCommandDedup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCommandDedup
impl !RefUnwindSafe for InMemoryCommandDedup
impl Send for InMemoryCommandDedup
impl Sync for InMemoryCommandDedup
impl Unpin for InMemoryCommandDedup
impl UnsafeUnpin for InMemoryCommandDedup
impl !UnwindSafe 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