pub struct CustomExchange { /* private fields */ }Expand description
Defines a custom RabbitMQ exchange, as opposed to any built-in variants.
Implementations§
Source§impl CustomExchange
impl CustomExchange
Sourcepub fn named(name: impl Into<String>) -> Result<Exchange, CustomExchangeError>
pub fn named(name: impl Into<String>) -> Result<Exchange, CustomExchangeError>
Creates a custom Exchange with the given name. This can fail if
the given name happens to match a known built-in RabbitMQ exchange, or if
a reserved name is used (all names starting with amq.* are reserved in
RabbitMQ).
Source§impl CustomExchange
impl CustomExchange
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.
Trait Implementations§
Source§impl Clone for CustomExchange
impl Clone for CustomExchange
Source§fn clone(&self) -> CustomExchange
fn clone(&self) -> CustomExchange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomExchange
impl Debug for CustomExchange
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.
Source§impl PartialEq for CustomExchange
impl PartialEq for CustomExchange
impl Eq for CustomExchange
impl StructuralPartialEq for CustomExchange
Auto Trait Implementations§
impl Freeze for CustomExchange
impl RefUnwindSafe for CustomExchange
impl Send for CustomExchange
impl Sync for CustomExchange
impl Unpin for CustomExchange
impl UnwindSafe for CustomExchange
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