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
impl 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