pub struct WatchDebouncedOptions {
pub max_wait: MaybeSignal<Option<f64>>,
/* private fields */
}
Expand description
Options for watch_debounced_with_options
.
Fields§
§max_wait: MaybeSignal<Option<f64>>
The maximum time allowed to be delayed before the callback invoked.
In milliseconds.
Same as DebounceOptions::max_wait
Implementations§
Source§impl WatchDebouncedOptions
impl WatchDebouncedOptions
Sourcepub fn immediate(self, value: bool) -> Self
pub fn immediate(self, value: bool) -> Self
If immediate
is false, the callback
will not run immediately but only after
the first change is detected of any signal that is accessed in deps
.
Defaults to true
.
Sourcepub fn max_wait(self, value: impl Into<MaybeSignal<Option<f64>>>) -> Self
pub fn max_wait(self, value: impl Into<MaybeSignal<Option<f64>>>) -> Self
The maximum time allowed to be delayed before the callback invoked.
In milliseconds.
Same as DebounceOptions::max_wait
Trait Implementations§
Source§impl Default for WatchDebouncedOptions
impl Default for WatchDebouncedOptions
Source§fn default() -> WatchDebouncedOptions
fn default() -> WatchDebouncedOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WatchDebouncedOptions
impl !RefUnwindSafe for WatchDebouncedOptions
impl !Send for WatchDebouncedOptions
impl !Sync for WatchDebouncedOptions
impl Unpin for WatchDebouncedOptions
impl !UnwindSafe for WatchDebouncedOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more