Struct leptos_use::WatchDebouncedOptions
source · 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