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)

What a consumer subject receives.

pub type ConsumerMessage {
  Delivered(Delivery)
  Cancelled(consumer_tag: String)
}

Constructors

  • Delivered(Delivery)
  • Cancelled(consumer_tag: String)

    The consumer is gone: cancelled by you or the broker (the queue was deleted, say), or its channel or connection closed.

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.nack or basic.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,
    )
✨ Search Document