pub struct Pool { /* private fields */ }Expand description
A pool of supervised AMQP connections.
Implementations§
Source§impl Pool
impl Pool
Sourcepub fn builder(url: impl Into<String>) -> PoolBuilder
pub fn builder(url: impl Into<String>) -> PoolBuilder
Start building a pool.
Sourcepub async fn acquire(&self) -> Result<Arc<Connection>, ConnectError>
pub async fn acquire(&self) -> Result<Arc<Connection>, ConnectError>
Acquire a healthy connection, re-establishing a dead slot if needed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Pool
impl !UnwindSafe for Pool
impl Freeze for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
Blanket Implementations§
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