pub struct ConnectionManager {
pub config: RabbitConfig,
/* private fields */
}Expand description
Connection manager with pooling and health monitoring
Fields§
§config: RabbitConfigImplementations§
Source§impl ConnectionManager
impl ConnectionManager
Sourcepub async fn new(config: RabbitConfig) -> Result<Self>
pub async fn new(config: RabbitConfig) -> Result<Self>
Create a new connection manager
Sourcepub async fn get_connection(&self) -> Result<Arc<Connection>>
pub async fn get_connection(&self) -> Result<Arc<Connection>>
Get a connection from the pool
Sourcepub async fn get_stats(&self) -> ConnectionStats
pub async fn get_stats(&self) -> ConnectionStats
Get connection statistics
Trait Implementations§
Source§impl Clone for ConnectionManager
impl Clone for ConnectionManager
Source§fn clone(&self) -> ConnectionManager
fn clone(&self) -> ConnectionManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionManager
impl !RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl !UnwindSafe for ConnectionManager
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