Expand description
AMQP 1.0 broker implementation for RustStream.
One protocol crate for the whole AMQP 1.0 family: ActiveMQ Artemis, RabbitMQ 4.x (its
AMQP 1.0 stack, distinct from the 0.9.1 protocol ruststream-lapin speaks), Azure Service
Bus, and every other broker speaking the ISO-standard protocol. Handlers, routers, codecs,
and middleware come from the framework; this crate supplies the transport over
fe2o3-amqp.
- Acknowledgement maps to protocol dispositions:
ackaccepts,nack(requeue = true)releases,nack(requeue = false)rejects (the broker’s dead-letter policy applies). - Request/reply is native:
reply-to,correlation-id, and a dynamic receiver link. - Headers ride
application-properties(well-known ones thepropertiessection), so no envelope format is invented and non-Rust peers see plainAMQPmessages. - Back-pressure is the protocol’s own credit-based flow control, surfaced as the
AmqpAddress::creditprefetch.
Structs§
- Amqp
Address - A subscription descriptor for an
AMQP1.0 address. - Amqp
Broker - An
AMQP1.0 broker for theRustStreammessaging framework. - Amqp
Message - A message delivered by an
AmqpSubscriber. - Amqp
Publish - The publish policy for
AmqpPublisher: pure declaration, constructible anywhere, paired with the connected broker by the runtime afterconnect. - Amqp
Publisher - Publishes messages to
AMQPaddresses, one sender link per address, attached lazily on the shared publisher session. - Amqp
Subscriber - A subscription to one
AMQPaddress; yieldsAmqpMessages. - Connected
Amqp Broker - The typed witness that
connectsucceeded: holds the live connection directly. - Sasl
- How the broker authenticates the connection, mapped onto the client’s SASL profiles.
Enums§
Constants§
- DEFAULT_
CREDIT - Default protocol-level credit (prefetch) granted to a subscription.
- PARTITION_
KEY_ HEADER - Header carrying the partition key, mapped onto the
AMQPgroup-idproperty.