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 moreimpl Copy for PreparedPlanCacheLimits
Source§impl Debug for PreparedPlanCacheLimits
impl Debug for PreparedPlanCacheLimits
Source§impl Default for PreparedPlanCacheLimits
impl Default for PreparedPlanCacheLimits
impl Eq for PreparedPlanCacheLimits
Source§impl PartialEq for PreparedPlanCacheLimits
impl PartialEq 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
Checks if this value is equivalent to the given key. Read more