gamqp/amqp091/event
Messages gamqp sends to your processes: deliveries, returns, publisher confirms and connection blocking.
Types
The broker stops reading from publishers when it runs low on memory or disk.
pub type Blocked {
Blocked(reason: String)
Unblocked
}
Constructors
-
Blocked(reason: String) -
Unblocked
A publisher confirm. With multiple, it covers every sequence number up
to and including sequence.
pub type Confirm {
Acked(sequence: Int, multiple: Bool)
Nacked(sequence: Int, multiple: Bool)
}
Constructors
-
Acked(sequence: Int, multiple: Bool) -
Nacked(sequence: Int, multiple: Bool)
pub type Delivery {
Delivery(
consumer_tag: String,
delivery_tag: Int,
redelivered: Bool,
exchange: String,
routing_key: String,
properties: message.Properties,
payload: BitArray,
)
}
Constructors
-
Delivery( consumer_tag: String, delivery_tag: Int, redelivered: Bool, exchange: String, routing_key: String, properties: message.Properties, payload: BitArray, )Arguments
- consumer_tag
-
Empty for messages fetched with
basic.get. - delivery_tag
-
Pass it to
basic.ack,basic.nackorbasic.reject.
A mandatory message the broker could not route.
pub type Returned {
Returned(
reply_code: Int,
reply_text: String,
exchange: String,
routing_key: String,
properties: message.Properties,
payload: BitArray,
)
}
Constructors
-
Returned( reply_code: Int, reply_text: String, exchange: String, routing_key: String, properties: message.Properties, payload: BitArray, )