pub struct PoolDefaults {
pub timeout: Option<Duration>,
pub limit: RowLimit,
pub telemetry_enabled: bool,
pub sql_capture_enabled: bool,
pub retry: RetryPolicy,
}Expand description
Defaults supplied by a pool for operations that inherit.
Fields§
§timeout: Option<Duration>Default statement timeout. None means the pool chose no timeout.
limit: RowLimitDefault bounded fetch limit.
telemetry_enabled: boolWhether telemetry is enabled by default.
sql_capture_enabled: boolWhether exact SQL capture is enabled by default.
retry: RetryPolicyDefault retry policy.
Trait Implementations§
Source§impl Clone for PoolDefaults
impl Clone for PoolDefaults
impl Copy for PoolDefaults
Source§impl Debug for PoolDefaults
impl Debug for PoolDefaults
Source§impl Default for PoolDefaults
impl Default for PoolDefaults
impl Eq for PoolDefaults
Source§impl PartialEq for PoolDefaults
impl PartialEq for PoolDefaults
impl StructuralPartialEq for PoolDefaults
Auto Trait Implementations§
impl Forget for PoolDefaults
impl Freeze for PoolDefaults
impl Move for PoolDefaults
impl RefUnwindSafe for PoolDefaults
impl Send for PoolDefaults
impl Sync for PoolDefaults
impl Unpin for PoolDefaults
impl UnsafeUnpin for PoolDefaults
impl UnwindSafe for PoolDefaults
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