pub enum AcknowledgementError<K, P> {
Existing {
key: K,
participants: Vec<P>,
},
Unknown(AcknowledgementInput<K, P>),
UnexpectedParticipant {
key: K,
participant: P,
},
DuplicateParticipant {
key: K,
participant: P,
},
Completed(AcknowledgementInput<K, P>),
Cancelled(AcknowledgementInput<K, P>),
}Expand description
Typed rejection of an acknowledgement operation.
Variants§
Existing
A lifecycle already exists for this key.
Fields
§
key: KRejected key.
Unknown(AcknowledgementInput<K, P>)
No lifecycle exists for this key.
UnexpectedParticipant
The participant was not declared for the pending lifecycle.
DuplicateParticipant
The participant already acknowledged.
Completed(AcknowledgementInput<K, P>)
An operation targeted a completed lifecycle.
Cancelled(AcknowledgementInput<K, P>)
An operation targeted a cancelled lifecycle.
Trait Implementations§
Source§impl<K: Clone, P: Clone> Clone for AcknowledgementError<K, P>
impl<K: Clone, P: Clone> Clone for AcknowledgementError<K, P>
Source§fn clone(&self) -> AcknowledgementError<K, P>
fn clone(&self) -> AcknowledgementError<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, P> Display for AcknowledgementError<K, P>
impl<K, P> Display for AcknowledgementError<K, P>
Source§impl<K, P> Error for AcknowledgementError<K, P>
impl<K, P> Error for AcknowledgementError<K, P>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl<K: Eq, P: Eq> Eq for AcknowledgementError<K, P>
impl<K, P> StructuralPartialEq for AcknowledgementError<K, P>
Auto Trait Implementations§
impl<K, P> Freeze for AcknowledgementError<K, P>
impl<K, P> RefUnwindSafe for AcknowledgementError<K, P>where
K: RefUnwindSafe,
P: RefUnwindSafe,
impl<K, P> Send for AcknowledgementError<K, P>
impl<K, P> Sync for AcknowledgementError<K, P>
impl<K, P> Unpin for AcknowledgementError<K, P>
impl<K, P> UnsafeUnpin for AcknowledgementError<K, P>where
K: UnsafeUnpin,
P: UnsafeUnpin,
impl<K, P> UnwindSafe for AcknowledgementError<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