Struct warmy::load::StoreOpt
[−]
[src]
pub struct StoreOpt { /* fields omitted */ }
Various options to customize a Store
.
Feel free to inspect all of its declared methods for further information.
Methods
impl StoreOpt
[src]
pub 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.
A Store
will wait that amount of time before deciding an resource should be reloaded after
it has changed on the filesystem. That is required in order to cope with write streaming, that
generates a lot of write event.
Default
Defaults to 50
milliseconds.
pub fn update_await_time_ms(&self) -> u64
[src]
Get the update await time (milliseconds).
pub 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 "."
.
pub fn root(&self) -> &Path
[src]
Get root directory.