[][src]Struct async_mq::client::Connection

pub struct Connection(_);

Methods

impl Connection[src]

pub fn producer_builder(&self) -> ProducerBuilder[src]

pub fn consumer_builder(&self) -> ConsumerBuilder[src]

pub async fn channel<'_>(&'_ self) -> Result<Channel, Error>[src]

channel creates a channel over the Connection and returns the Future<Output = <lapin::Channel>>.

pub async fn queue<'_, '_, '_>(
    &'_ self,
    ex: &'_ str,
    queue: &'_ str,
    opts: QueueOptions
) -> Result<(Channel, Queue), Error>
[src]

queue creates a channel and a queue over the Connection and returns the Future<Output = <lapin::Channel, lapin::Queue>>.

Trait Implementations

impl Clone for Connection[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.