Enum nickel::template_cache::ReloadPolicy
source · pub enum ReloadPolicy {
Never,
Periodic(Duration),
Always,
}
Expand description
ReloadPolicy controls how often the modification time of template file is checked. Checks take place only when rendering the template.
Variants
Never
Never check for changes. Once loaded, templates will not change unless one of TemplateCache::clear or TemplateCache::reload_template are called, or the server is restarted.
Periodic(Duration)
Check after a period of time. For example, with a duration of 30 min, the template will be checked no more than once every 30 min.
Always
Check every time the template is rendered.
Auto Trait Implementations
impl RefUnwindSafe for ReloadPolicy
impl Send for ReloadPolicy
impl Sync for ReloadPolicy
impl Unpin for ReloadPolicy
impl UnwindSafe for ReloadPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more