pub enum AcknowledgementOutcome<K, P> {
Started {
key: K,
remaining: usize,
},
Acknowledged {
key: K,
participant: P,
remaining: usize,
},
Completed {
key: K,
},
Cancelled {
key: K,
},
Rejected(AcknowledgementError<K, P>),
}Expand description
Complete result of one acknowledgement operation.
Variants§
Started
A new lifecycle was accepted.
Acknowledged
One participant was accepted and requirements remain.
Completed
The lifecycle reached its terminal successful phase.
Fields
§
key: KCorrelation key.
Cancelled
The lifecycle reached its terminal cancelled phase.
Fields
§
key: KCorrelation key.
Rejected(AcknowledgementError<K, P>)
The operation was rejected without changing state.
Trait Implementations§
Source§impl<K: Clone, P: Clone> Clone for AcknowledgementOutcome<K, P>
impl<K: Clone, P: Clone> Clone for AcknowledgementOutcome<K, P>
Source§fn clone(&self) -> AcknowledgementOutcome<K, P>
fn clone(&self) -> AcknowledgementOutcome<K, P>
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<K: PartialEq, P: PartialEq> PartialEq for AcknowledgementOutcome<K, P>
impl<K: PartialEq, P: PartialEq> PartialEq for AcknowledgementOutcome<K, P>
Source§fn eq(&self, other: &AcknowledgementOutcome<K, P>) -> bool
fn eq(&self, other: &AcknowledgementOutcome<K, P>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<K: Eq, P: Eq> Eq for AcknowledgementOutcome<K, P>
impl<K, P> StructuralPartialEq for AcknowledgementOutcome<K, P>
Auto Trait Implementations§
impl<K, P> Freeze for AcknowledgementOutcome<K, P>
impl<K, P> RefUnwindSafe for AcknowledgementOutcome<K, P>where
K: RefUnwindSafe,
P: RefUnwindSafe,
impl<K, P> Send for AcknowledgementOutcome<K, P>
impl<K, P> Sync for AcknowledgementOutcome<K, P>
impl<K, P> Unpin for AcknowledgementOutcome<K, P>
impl<K, P> UnsafeUnpin for AcknowledgementOutcome<K, P>where
K: UnsafeUnpin,
P: UnsafeUnpin,
impl<K, P> UnwindSafe for AcknowledgementOutcome<K, P>where
K: UnwindSafe,
P: UnwindSafe,
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