pub struct Gateway { /* private fields */ }Expand description
An asynchronous gateway to creating and retrieving fresh Channels on an
internally maintained Connection.
Implementations§
Source§impl Gateway
impl Gateway
Sourcepub async fn channel(&self) -> Channel
pub async fn channel(&self) -> Channel
Asynchronously requests the linked Connector to create a fresh
Channel on its internally maintained Connection and return said
channel when ready.
Depending on the connectivity to RabbitMQ this method may take
arbitrarily long to return. Use the
channel_with_timeout method to limit
the waiting time.
Auto Trait Implementations§
impl Freeze for Gateway
impl RefUnwindSafe for Gateway
impl Send for Gateway
impl Sync for Gateway
impl Unpin for Gateway
impl UnwindSafe for Gateway
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more