[][src]Struct warmy::load::StoreOpt

pub struct StoreOpt<C, K> { /* fields omitted */ }

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]

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]

Change the discovery mechanism.

Default

Defaults to Discovery::default().

pub fn discovery(&self) -> &Discovery<C, K>[src]

Get the discovery mechanism.

Trait Implementations

impl<C, K> Default for StoreOpt<C, K>[src]

Auto Trait Implementations

impl<C, K> !Send for StoreOpt<C, K>

impl<C, K> !Sync for StoreOpt<C, K>

Blanket Implementations

impl<'a, T, C, M> Inspect<'a, C, (), M> for T[src]

impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T[src]

impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]