pub enum PlanCacheMode {
Disabled,
ReadThrough,
ReadOnly,
WriteOnly,
Refresh,
}Expand description
Controls whether a plan evaluation reads from and/or writes to the plan cache.
Variants§
Disabled
Bypasses the cache entirely: no reads and no writes.
ReadThrough
Reads cached responses and writes fresh ones back (the default).
ReadOnly
Reads cached responses but never writes new entries.
WriteOnly
Writes fresh responses but never serves cached ones.
Refresh
Ignores existing entries on read yet writes the recomputed response.
Implementations§
Trait Implementations§
Source§impl Clone for PlanCacheMode
impl Clone for PlanCacheMode
Source§fn clone(&self) -> PlanCacheMode
fn clone(&self) -> PlanCacheMode
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 PlanCacheMode
Source§impl Debug for PlanCacheMode
impl Debug for PlanCacheMode
Source§impl Default for PlanCacheMode
impl Default for PlanCacheMode
Source§fn default() -> PlanCacheMode
fn default() -> PlanCacheMode
Returns the “default value” for a type. Read more
impl Eq for PlanCacheMode
Source§impl PartialEq for PlanCacheMode
impl PartialEq for PlanCacheMode
Source§fn eq(&self, other: &PlanCacheMode) -> bool
fn eq(&self, other: &PlanCacheMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanCacheMode
Auto Trait Implementations§
impl Freeze for PlanCacheMode
impl RefUnwindSafe for PlanCacheMode
impl Send for PlanCacheMode
impl Sync for PlanCacheMode
impl Unpin for PlanCacheMode
impl UnsafeUnpin for PlanCacheMode
impl UnwindSafe for PlanCacheMode
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