pub struct PreparedPlanCacheLimits {
pub max_entries: NonZeroUsize,
pub max_retained_bytes: NonZeroUsize,
pub max_in_flight_entries: NonZeroUsize,
pub max_queued_distinct_keys: NonZeroUsize,
}Expand description
Bounded prepared-plan cache limits.
§Examples
use tenferro_runtime::PreparedPlanCacheLimits;
assert_eq!(PreparedPlanCacheLimits::default().max_entries.get(), 128);Fields§
§max_entries: NonZeroUsizeMaximum retained terminal entries.
max_retained_bytes: NonZeroUsizeMaximum retained logical bytes.
max_in_flight_entries: NonZeroUsizeMaximum distinct keys that may actively prepare at once.
max_queued_distinct_keys: NonZeroUsizeMaximum distinct queued keys waiting for an in-flight slot.
Trait Implementations§
Source§impl Clone for PreparedPlanCacheLimits
impl Clone for PreparedPlanCacheLimits
Source§fn clone(&self) -> PreparedPlanCacheLimits
fn clone(&self) -> PreparedPlanCacheLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreparedPlanCacheLimits
impl Debug for PreparedPlanCacheLimits
Source§impl Default for PreparedPlanCacheLimits
impl Default for PreparedPlanCacheLimits
Source§impl PartialEq for PreparedPlanCacheLimits
impl PartialEq for PreparedPlanCacheLimits
Source§fn eq(&self, other: &PreparedPlanCacheLimits) -> bool
fn eq(&self, other: &PreparedPlanCacheLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PreparedPlanCacheLimits
impl Eq for PreparedPlanCacheLimits
impl StructuralPartialEq for PreparedPlanCacheLimits
Auto Trait Implementations§
impl Freeze for PreparedPlanCacheLimits
impl RefUnwindSafe for PreparedPlanCacheLimits
impl Send for PreparedPlanCacheLimits
impl Sync for PreparedPlanCacheLimits
impl Unpin for PreparedPlanCacheLimits
impl UnsafeUnpin for PreparedPlanCacheLimits
impl UnwindSafe for PreparedPlanCacheLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more