Skip to main content

AcknowledgementMessage

Enum AcknowledgementMessage 

Source
pub enum AcknowledgementMessage<K, P, Route> {
    Begin {
        key: K,
        participants: Vec<P>,
        reply_to: Route,
    },
    Acknowledge {
        key: K,
        participant: P,
        reply_to: Route,
    },
    Cancel {
        key: K,
        reply_to: Route,
    },
}
Expand description

Operations accepted by Acknowledgements.

Variants§

§

Begin

Establish a fresh acknowledgement lifecycle.

Fields

§key: K

Correlation key.

§participants: Vec<P>

Required participants; duplicates are normalized by first occurrence.

§reply_to: Route

Typed outcome recipient.

§

Acknowledge

Record one participant acknowledgement.

Fields

§key: K

Correlation key.

§participant: P

Participant making the acknowledgement.

§reply_to: Route

Typed outcome recipient.

§

Cancel

Cancel a pending lifecycle.

Fields

§key: K

Correlation key.

§reply_to: Route

Typed outcome recipient.

Auto Trait Implementations§

§

impl<K, P, Route> Freeze for AcknowledgementMessage<K, P, Route>
where K: Freeze, Route: Freeze, P: Freeze,

§

impl<K, P, Route> RefUnwindSafe for AcknowledgementMessage<K, P, Route>

§

impl<K, P, Route> Send for AcknowledgementMessage<K, P, Route>
where K: Send, Route: Send, P: Send,

§

impl<K, P, Route> Sync for AcknowledgementMessage<K, P, Route>
where K: Sync, Route: Sync, P: Sync,

§

impl<K, P, Route> Unpin for AcknowledgementMessage<K, P, Route>
where K: Unpin, Route: Unpin, P: Unpin,

§

impl<K, P, Route> UnsafeUnpin for AcknowledgementMessage<K, P, Route>
where K: UnsafeUnpin, Route: UnsafeUnpin, P: UnsafeUnpin,

§

impl<K, P, Route> UnwindSafe for AcknowledgementMessage<K, P, Route>
where K: UnwindSafe, Route: 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> 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, 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.