pub struct ConnectionPool { /* private fields */ }Implementations§
Source§impl ConnectionPool
impl ConnectionPool
pub fn new<P: AsRef<Path>>(path: P) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_max_size(self, max_size: usize) -> Self
pub async fn acquire(&mut self) -> Result<KittyClient, KittyError>
pub fn release(&mut self, client: KittyClient)
Auto Trait Implementations§
impl Freeze for ConnectionPool
impl RefUnwindSafe for ConnectionPool
impl Send for ConnectionPool
impl Sync for ConnectionPool
impl Unpin for ConnectionPool
impl UnwindSafe for ConnectionPool
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