[−][src]Struct warmy::load::StoreOpt
Various options to customize a Store
.
Feel free to inspect all of its declared methods for further information.
Methods
impl<C, K> StoreOpt<C, K>
[src]
pub fn set_debounce_duration(self, duration: Duration) -> Self
[src]
Change the debounce duration 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 debounce_duration(&self) -> Duration
[src]
Get the debounce duration.
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.
pub fn set_discovery(self, discovery: Discovery<C, K>) -> Self
[src]
pub fn discovery(&self) -> &Discovery<C, K>
[src]
Get the discovery mechanism.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<'a, T, C, M> Inspect for T
[src]
impl<'a, T, C, M> Inspect for T
[src]
impl<'a, T, C, M> Inspect for T
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,