pub enum CacheHint {
Always,
UntilChanged,
SlidingPrefix {
stable_fraction: f32,
},
Never,
}Expand description
Cache hint for a region or message boundary.
Variants§
Always
Always cache - content never changes (pinned, system, tools, compact history).
UntilChanged
Cache until content hash changes (compacting regions between compaction events).
SlidingPrefix
Cache the stable prefix of a sliding window.
stable_fraction is 0.0..1.0 (default 0.75 = oldest 75% of messages are stable).
Never
Never cache (temporary, clearable, new messages).
Trait Implementations§
impl Copy for CacheHint
Source§impl<'de> Deserialize<'de> for CacheHint
impl<'de> Deserialize<'de> for CacheHint
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 StructuralPartialEq for CacheHint
Auto Trait Implementations§
impl Freeze for CacheHint
impl RefUnwindSafe for CacheHint
impl Send for CacheHint
impl Sync for CacheHint
impl Unpin for CacheHint
impl UnsafeUnpin for CacheHint
impl UnwindSafe for CacheHint
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