pub enum ExhaustionPolicy {
FailFast,
Block {
timeout: Duration,
},
}Expand description
What to do when all connections are busy.
Variants§
Trait Implementations§
Source§impl Clone for ExhaustionPolicy
impl Clone for ExhaustionPolicy
Source§fn clone(&self) -> ExhaustionPolicy
fn clone(&self) -> ExhaustionPolicy
Returns a duplicate 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 ExhaustionPolicy
impl Debug for ExhaustionPolicy
Source§impl Default for ExhaustionPolicy
impl Default for ExhaustionPolicy
Source§fn default() -> ExhaustionPolicy
fn default() -> ExhaustionPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExhaustionPolicy
impl PartialEq for ExhaustionPolicy
impl Copy for ExhaustionPolicy
impl Eq for ExhaustionPolicy
impl StructuralPartialEq for ExhaustionPolicy
Auto Trait Implementations§
impl Freeze for ExhaustionPolicy
impl RefUnwindSafe for ExhaustionPolicy
impl Send for ExhaustionPolicy
impl Sync for ExhaustionPolicy
impl Unpin for ExhaustionPolicy
impl UnwindSafe for ExhaustionPolicy
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