Skip to main content

AcknowledgementOutcome

Enum AcknowledgementOutcome 

Source
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.

Fields

§key: K

Correlation key.

§remaining: usize

Number of distinct participants still required.

§

Acknowledged

One participant was accepted and requirements remain.

Fields

§key: K

Correlation key.

§participant: P

Accepted participant.

§remaining: usize

Number still required.

§

Completed

The lifecycle reached its terminal successful phase.

Fields

§key: K

Correlation key.

§

Cancelled

The lifecycle reached its terminal cancelled phase.

Fields

§key: K

Correlation 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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<K: Debug, P: Debug> Debug for AcknowledgementOutcome<K, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<K: PartialEq, P: PartialEq> PartialEq for AcknowledgementOutcome<K, P>

Source§

fn eq(&self, other: &AcknowledgementOutcome<K, P>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<K: Eq, P: Eq> Eq for AcknowledgementOutcome<K, P>

Source§

impl<K, P> StructuralPartialEq for AcknowledgementOutcome<K, P>

Auto Trait Implementations§

§

impl<K, P> Freeze for AcknowledgementOutcome<K, P>
where K: Freeze, P: Freeze,

§

impl<K, P> RefUnwindSafe for AcknowledgementOutcome<K, P>

§

impl<K, P> Send for AcknowledgementOutcome<K, P>
where K: Send, P: Send,

§

impl<K, P> Sync for AcknowledgementOutcome<K, P>
where K: Sync, P: Sync,

§

impl<K, P> Unpin for AcknowledgementOutcome<K, P>
where K: Unpin, P: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.