pub enum IdleStrategy {
Lifo,
Fifo,
}Expand description
Which idle connection is reused first.
Variants§
Lifo
Reuse the hottest connection; cold ones age out and get evicted.
Fifo
Reuse the oldest idle connection; spreads load / rotates evenly.
Implementations§
Trait Implementations§
Source§impl Clone for IdleStrategy
impl Clone for IdleStrategy
impl Copy for IdleStrategy
Source§impl Debug for IdleStrategy
impl Debug for IdleStrategy
Source§impl Display for IdleStrategy
impl Display for IdleStrategy
impl Eq for IdleStrategy
Source§impl Hash for IdleStrategy
impl Hash for IdleStrategy
Source§impl PartialEq for IdleStrategy
impl PartialEq for IdleStrategy
impl StructuralPartialEq for IdleStrategy
Auto Trait Implementations§
impl Freeze for IdleStrategy
impl RefUnwindSafe for IdleStrategy
impl Send for IdleStrategy
impl Sync for IdleStrategy
impl Unpin for IdleStrategy
impl UnsafeUnpin for IdleStrategy
impl UnwindSafe for IdleStrategy
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