Enum bb8::QueueStrategy
source · pub enum QueueStrategy {
Fifo,
Lifo,
}
Expand description
bb8’s queue strategy when getting pool resources
Variants§
Fifo
First in first out This strategy behaves like a queue It will evenly spread load on all existing connections, resetting their idle timeouts, maintaining the pool size
Lifo
Last in first out This behaves like a stack It will use the most recently used connection and help to keep the total pool size small by evicting idle connections
Trait Implementations§
source§impl Clone for QueueStrategy
impl Clone for QueueStrategy
source§fn clone(&self) -> QueueStrategy
fn clone(&self) -> QueueStrategy
Returns a copy 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 moresource§impl Debug for QueueStrategy
impl Debug for QueueStrategy
source§impl Default for QueueStrategy
impl Default for QueueStrategy
source§fn default() -> QueueStrategy
fn default() -> QueueStrategy
Returns the “default value” for a type. Read more
impl Copy for QueueStrategy
Auto Trait Implementations§
impl RefUnwindSafe for QueueStrategy
impl Send for QueueStrategy
impl Sync for QueueStrategy
impl Unpin for QueueStrategy
impl UnwindSafe for QueueStrategy
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