[−][src]Struct async_mq::client::Connection
A non-consuming ProducerBuilder and ConsumerBuilder builder.
Methods
impl Connection[src]
pub fn producer_builder(&self) -> ProducerBuilder[src]
Build a non-consuming ProducerBuilder.
pub fn consumer_builder(&self) -> ConsumerBuilder[src]
Build a non-consuming ConsumerBuilder.
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]
&'_ self,
ex: &'_ str,
queue: &'_ str,
opts: QueueOptions
) -> Result<(Channel, Queue), Error>
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]
fn clone(&self) -> Connection[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,