pub struct StoreOpt<C, K> { /* private fields */ }
Expand description
Various options to customize a Store
.
Feel free to inspect all of its declared methods for further information.
Implementations
sourceimpl<C, K> StoreOpt<C, K>
impl<C, K> StoreOpt<C, K>
sourcepub fn set_debounce_duration(self, duration: Duration) -> StoreOpt<C, K>
pub fn set_debounce_duration(self, duration: Duration) -> StoreOpt<C, K>
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.
sourcepub fn debounce_duration(&self) -> Duration
pub fn debounce_duration(&self) -> Duration
Get the debounce duration.
sourcepub fn set_discovery(self, discovery: Discovery<C, K>) -> StoreOpt<C, K>
pub fn set_discovery(self, discovery: Discovery<C, K>) -> StoreOpt<C, K>
Trait Implementations
Auto Trait Implementations
impl<C, K> !RefUnwindSafe for StoreOpt<C, K>
impl<C, K> !Send for StoreOpt<C, K>
impl<C, K> !Sync for StoreOpt<C, K>
impl<C, K> Unpin for StoreOpt<C, K>
impl<C, K> !UnwindSafe for StoreOpt<C, K>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.