[−][src]Struct amqp_manager::AmqpManager
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]
args: FieldTable,
dead_letter_exchange_name: &str
) -> FieldTable
Helper method to create a FieldTable
instance with the dead-letter argument.
pub fn deserialize_delivery<T: DeserializeOwned>(
delivery: &Delivery
) -> AmqpConsumerResult<T>
[src]
delivery: &Delivery
) -> AmqpConsumerResult<T>
Helper method to deserialize the Delivery
contents into a T
struct.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AmqpManager
impl Send for AmqpManager
impl Sync for AmqpManager
impl Unpin for AmqpManager
impl !UnwindSafe for AmqpManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,