struct ReaderPool {
idle: Mutex<Vec<Connection>>,
returned: Condvar,
}Expand description
Read-only connections, checked out one per query. WAL gives each a snapshot of the last commit, so they never wait for the writer.
Fields§
§idle: Mutex<Vec<Connection>>§returned: CondvarImplementations§
Auto Trait Implementations§
impl !Freeze for ReaderPool
impl RefUnwindSafe for ReaderPool
impl Send for ReaderPool
impl Sync for ReaderPool
impl Unpin for ReaderPool
impl UnsafeUnpin for ReaderPool
impl UnwindSafe for ReaderPool
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