[][src]Enum nickel::template_cache::ReloadPolicy

pub enum ReloadPolicy {
    Never,
    Periodic(Duration),
    Always,
}

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any