pub struct DebounceOptions<'a> {
pub workflow_id: Option<&'a str>,
}Expand description
What one debounce says beyond its key, period and input — see
Debouncer::debounce_with and DebouncerClient::debounce_with.
Per call rather than on the debouncer, because what it names belongs to one workflow: a debouncer serves any number of keys, and any number of workflows one key after another.
Fields§
§workflow_id: Option<&'a str>The id of the workflow this call enqueues, in place of a generated one.
Used only when the call enqueues a fresh workflow. A call that coalesces onto a
workflow already waiting under the key hands back that workflow, whatever id this names.
A fresh enqueue under an id that already names a workflow is not joined to it: the call
fails with ConflictingWorkflow.
Trait Implementations§
Source§impl<'a> Clone for DebounceOptions<'a>
impl<'a> Clone for DebounceOptions<'a>
impl<'a> Copy for DebounceOptions<'a>
Source§impl<'a> Debug for DebounceOptions<'a>
impl<'a> Debug for DebounceOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for DebounceOptions<'a>
impl<'a> Freeze for DebounceOptions<'a>
impl<'a> RefUnwindSafe for DebounceOptions<'a>
impl<'a> Send for DebounceOptions<'a>
impl<'a> Sync for DebounceOptions<'a>
impl<'a> Unpin for DebounceOptions<'a>
impl<'a> UnsafeUnpin for DebounceOptions<'a>
impl<'a> UnwindSafe for DebounceOptions<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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