pub struct ConnectionPool<C: Connection> { /* private fields */ }Implementations§
Source§impl<C: Connection> ConnectionPool<C>
impl<C: Connection> ConnectionPool<C>
pub fn new(options: ConnectionPoolOptions) -> Self
pub fn get_or_init<S, F>( &self, endpoint: S, init_connection: &F, ) -> Arc<Addr<C>>
pub fn get_or_init_with_index_seed<S, F>( &self, endpoint: S, index_seed: u32, init_connection: &F, ) -> Arc<Addr<C>>
pub fn remove_by_endpoint<S>(&self, endpoint: S)
Auto Trait Implementations§
impl<C> Freeze for ConnectionPool<C>
impl<C> !RefUnwindSafe for ConnectionPool<C>
impl<C> Send for ConnectionPool<C>
impl<C> Sync for ConnectionPool<C>
impl<C> Unpin for ConnectionPool<C>
impl<C> !UnwindSafe for ConnectionPool<C>
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