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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.