Struct warmy::StoreOpt
[−]
[src]
pub struct StoreOpt { /* fields omitted */ }
Various options to customize a Store
.
Methods
impl StoreOpt
[src]
fn set_update_await_time_ms(self, ms: u64) -> Self
[src]
Change the update await time (milliseconds) used to determine whether a resource should be reloaded or not.
Default
Defaults to 1000
.
fn update_await_time_ms(&self) -> u64
[src]
Get the update await time (milliseconds).
fn set_root<P>(self, root: P) -> Self where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Change the root directory from which the Store
will be watching file changes.
Default
Defaults to "."
.
fn root(&self) -> &Path
[src]
Get root directory.