pub enum ExchangeKind {
Direct,
Fanout,
Headers,
Topic,
HashKey,
HashId,
}Expand description
Represents the supported kinds of RabbitMQ exchanges.
Variants§
Direct
A direct exchange delivers messages to queues based on the message routing key.
Fanout
A fanout exchange routes messages to all the queues that are bound to it, and the routing key is ignored.
Headers
A headers exchange is designed for routing on multiple attributes that are more easily expressed as message headers than a routing key.
Topic
Topic exchanges route messages to one or many queues based on matching between a message routing key and the pattern that was used to bind a queue to an exchange.
HashKey
The consistent-hash exchange type uses consistent hashing to distribute messages between the bound queues.
This subtype applies the hashing to the routing key on the message (not the routing key used when binding a queue to an exchange).
HashId
The consistent-hash exchange type uses consistent hashing to distribute messages between the bound queues.
This subtype applies the hashing to the message ID.
Implementations§
Source§impl ExchangeKind
impl ExchangeKind
Sourcepub fn lapin_value(&self) -> LapinExchangeKind
pub fn lapin_value(&self) -> LapinExchangeKind
Returns the lapin::ExchangeKind value corresponding to this exchange
kind.
Trait Implementations§
Source§impl Clone for ExchangeKind
impl Clone for ExchangeKind
Source§fn clone(&self) -> ExchangeKind
fn clone(&self) -> ExchangeKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more