pub enum SkillCacheMode {
Disabled,
ReadThrough,
ReadOnly,
WriteOnly,
Refresh,
}Expand description
Caching behavior for a skill’s results.
Caching only applies to skills marked idempotent (see
SkillPolicy::idempotent).
Variants§
Disabled
No caching; every call reaches the transport.
ReadThrough
Read from the cache on a hit, otherwise call and store the result.
ReadOnly
Read from the cache but never store new results.
WriteOnly
Store results but never serve from the cache.
Refresh
Bypass cached results and refresh the stored entry from a live call.
Implementations§
Trait Implementations§
Source§impl Clone for SkillCacheMode
impl Clone for SkillCacheMode
Source§fn clone(&self) -> SkillCacheMode
fn clone(&self) -> SkillCacheMode
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 moreSource§impl Debug for SkillCacheMode
impl Debug for SkillCacheMode
impl Eq for SkillCacheMode
Source§impl PartialEq for SkillCacheMode
impl PartialEq for SkillCacheMode
Source§fn eq(&self, other: &SkillCacheMode) -> bool
fn eq(&self, other: &SkillCacheMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SkillCacheMode
Auto Trait Implementations§
impl Freeze for SkillCacheMode
impl RefUnwindSafe for SkillCacheMode
impl Send for SkillCacheMode
impl Sync for SkillCacheMode
impl Unpin for SkillCacheMode
impl UnsafeUnpin for SkillCacheMode
impl UnwindSafe for SkillCacheMode
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