Lines Matching refs:CachePolicy
366 pub enum CachePolicy { enum
383 impl FromStr for CachePolicy { implementation
388 "never" | "Never" | "NEVER" => Ok(CachePolicy::Never), in from_str()
389 "auto" | "Auto" | "AUTO" => Ok(CachePolicy::Auto), in from_str()
390 "always" | "Always" | "ALWAYS" => Ok(CachePolicy::Always), in from_str()
396 impl Default for CachePolicy { implementation
398 CachePolicy::Auto in default()
421 pub cache_policy: CachePolicy,
731 CachePolicy::Never => opts.set( in do_open()
735 CachePolicy::Always => { in do_open()
1101 if self.cfg.cache_policy == CachePolicy::Always { in init()