pub enum Exchange {
Default,
AmqDirect,
AmqFanout,
AmqHeaders,
AmqMatch,
AmqTopic,
Custom(CustomExchange),
}Expand description
Defines a RabbitMQ exchange to be used in definitions related to RabbitMQ routing.
Variants§
Default
The RabbitMQ built-in default exchange (the empty-name exchange "").
AmqDirect
The RabbitMQ built-in "amq.direct" exchange.
AmqFanout
The RabbitMQ built-in "amq.fanout" exchange.
AmqHeaders
The RabbitMQ built-in "amq.headers" exchange.
AmqMatch
The RabbitMQ built-in "amq.match" exchange.
AmqTopic
The RabbitMQ built-in "amq.topic" exchange.
Custom(CustomExchange)
A custom, non-built-in RabbitMQ exchange.
Implementations§
Source§impl Exchange
impl Exchange
Sourcepub const fn is_builtin(&self) -> bool
pub const fn is_builtin(&self) -> bool
Reports whether the exchange is one of the built-ins for this definition.
Sourcepub const fn is_default(&self) -> bool
pub const fn is_default(&self) -> bool
Reports whether the exchange is default
for this definition.
Sourcepub const fn is_custom(&self) -> bool
pub const fn is_custom(&self) -> bool
Reports whether the exchange is custom for
this definition.
Sourcepub fn kind(&self) -> ExchangeKind
pub fn kind(&self) -> ExchangeKind
Reports the exchange kind for this definition.
Sourcepub fn auto_delete(&self) -> bool
pub fn auto_delete(&self) -> bool
Reports whether the exchange is auto-deleted for this definition.
Source§impl Exchange
impl Exchange
Sourcepub fn builder() -> ExchangeBuilder
pub fn builder() -> ExchangeBuilder
Creates a new ExchangeBuilder.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exchange
impl<'de> Deserialize<'de> for Exchange
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CustomExchange> for Exchange
impl From<CustomExchange> for Exchange
Source§fn from(value: CustomExchange) -> Self
fn from(value: CustomExchange) -> Self
Converts to this type from the input type.
impl Eq for Exchange
impl StructuralPartialEq for Exchange
Auto Trait Implementations§
impl Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more