Struct amqppatternwrapper::amqp_pattern_wrapper::ConnectedBroker[][src]

pub struct ConnectedBroker { /* fields omitted */ }

Implementations

impl ConnectedBroker[src]

pub fn connect(addr: String) -> ConnectedBroker[src]

pub fn get_queue_name(&self) -> &String[src]

pub fn get_channel(&self) -> &Channel[src]

pub fn close(self)[src]

pub fn declare_work_queue(&mut self, queue_name: String)[src]

pub fn consume<F: Fn(Delivery)>(&self, handler: F)[src]

pub fn publish(&self, message: Publish<'_>) -> Result<(), Error>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.