pub enum SectionCachePolicy {
Static,
SessionCached,
TurnDynamic,
}Expand description
Cache behavior for a section.
Variants§
Static
Stable across runs unless the application changes it.
SessionCached
Stable within a session until an invalidation event occurs.
TurnDynamic
Recomputed on every turn.
Trait Implementations§
Source§impl Clone for SectionCachePolicy
impl Clone for SectionCachePolicy
Source§fn clone(&self) -> SectionCachePolicy
fn clone(&self) -> SectionCachePolicy
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 SectionCachePolicy
Source§impl Debug for SectionCachePolicy
impl Debug for SectionCachePolicy
Source§impl<'de> Deserialize<'de> for SectionCachePolicy
impl<'de> Deserialize<'de> for SectionCachePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SectionCachePolicy
Source§impl PartialEq for SectionCachePolicy
impl PartialEq for SectionCachePolicy
Source§fn eq(&self, other: &SectionCachePolicy) -> bool
fn eq(&self, other: &SectionCachePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SectionCachePolicy
impl Serialize for SectionCachePolicy
impl StructuralPartialEq for SectionCachePolicy
Auto Trait Implementations§
impl Freeze for SectionCachePolicy
impl RefUnwindSafe for SectionCachePolicy
impl Send for SectionCachePolicy
impl Sync for SectionCachePolicy
impl Unpin for SectionCachePolicy
impl UnsafeUnpin for SectionCachePolicy
impl UnwindSafe for SectionCachePolicy
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