pub struct CacheOpts(/* private fields */);Expand description
Builder for CacheOptions with fluent API
Implementations§
Source§impl CacheOpts
impl CacheOpts
Add multiple tags
Sourcepub fn depends_on<I, S>(self, keys: I) -> CacheOpts
pub fn depends_on<I, S>(self, keys: I) -> CacheOpts
Add dependencies
Sourcepub fn early_refresh(self) -> CacheOpts
pub fn early_refresh(self) -> CacheOpts
Enable early probabilistic refresh
Sourcepub fn if_version(self, version: u64) -> CacheOpts
pub fn if_version(self, version: u64) -> CacheOpts
Conditional set: only if version matches
Sourcepub fn build(self) -> CacheOptions
pub fn build(self) -> CacheOptions
Build the options
Trait Implementations§
Source§impl From<CacheOpts> for CacheOptions
impl From<CacheOpts> for CacheOptions
Source§fn from(opts: CacheOpts) -> CacheOptions
fn from(opts: CacheOpts) -> CacheOptions
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CacheOpts
impl RefUnwindSafe for CacheOpts
impl Send for CacheOpts
impl Sync for CacheOpts
impl Unpin for CacheOpts
impl UnwindSafe for CacheOpts
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