[][src]Struct amqp_manager::AmqpManager

pub struct AmqpManager { /* fields omitted */ }

The struct that handles the connection pool.

Implementations

impl AmqpManager[src]

pub fn new(conn_pool: Pool<LapinConnectionManager>) -> AmqpResult<Self>[src]

pub async fn get_session<'_>(&'_ self) -> AmqpResult<AmqpSession>[src]

Gets a new connection from the connection pool and creates a new channel. Both the connection and the channel will be closed when dropping the AmqpSession instance.

pub fn dead_letter_args(
    args: FieldTable,
    dead_letter_exchange_name: &str
) -> FieldTable
[src]

Helper method to create a FieldTable instance with the dead-letter argument.

pub fn deserialize_delivery<T: DeserializeOwned>(
    delivery: &Delivery
) -> AmqpConsumerResult<T>
[src]

Helper method to deserialize the Delivery contents into a T struct.

Trait Implementations

impl Debug for AmqpManager[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.