Skip to main content

is_cancel_message

Function is_cancel_message 

Source
pub(crate) fn is_cancel_message(message: &Message) -> bool
Expand description

Tells whether a message on the ack subject is a cancel request.

A cancel carries the header Avena-Export-Frame: cancel, or a JSON body whose type is cancel for clients that cannot set headers. Every other message, including the empty acks, is an ack.