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.
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.
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.
Check every time the template is rendered.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.
impl<T> UnsafeAny for T where T: Any, | |