[][src]Struct janus::AckMessage

pub struct AckMessage<M> { /* fields omitted */ }

Wraps a message with a channel for sending acknowledgments.

Implementations

impl<M> AckMessage<M>[src]

pub fn new(message: M, acks_tx: Sender<M>) -> Self[src]

Creates a new acknowledged message.

pub fn message(&self) -> &M[src]

Returns a reference to the underlying message.

pub async fn ack(__arg0: Self) -> Result<(), SendError>[src]

Sends the message to the AckHandler.

Trait Implementations

impl<M: Debug> Debug for AckMessage<M>[src]

impl<M: Message> Message for AckMessage<M>[src]

Auto Trait Implementations

impl<M> !RefUnwindSafe for AckMessage<M>

impl<M> Send for AckMessage<M> where
    M: Send

impl<M> Sync for AckMessage<M> where
    M: Send + Sync

impl<M> Unpin for AckMessage<M> where
    M: Unpin

impl<M> !UnwindSafe for AckMessage<M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.