pub enum Duplicates {
Reuse,
Allow,
}Expand description
What to do when the requested demand already exists as a queued trigger. The two creation paths genuinely disagree, so the disagreement is an argument rather than a property of which function was called.
Variants§
Reuse
Reuse a queued trigger of the same kind pinned to the same ticket, so
reposting a ticket cannot pile up demand. sloop post.
Allow
Always mint a new trigger: two invocations mean two runs. sloop run.
Trait Implementations§
Source§impl Clone for Duplicates
impl Clone for Duplicates
Source§fn clone(&self) -> Duplicates
fn clone(&self) -> Duplicates
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Duplicates
Source§impl Debug for Duplicates
impl Debug for Duplicates
impl Eq for Duplicates
Source§impl PartialEq for Duplicates
impl PartialEq for Duplicates
impl StructuralPartialEq for Duplicates
Auto Trait Implementations§
impl Freeze for Duplicates
impl RefUnwindSafe for Duplicates
impl Send for Duplicates
impl Sync for Duplicates
impl Unpin for Duplicates
impl UnsafeUnpin for Duplicates
impl UnwindSafe for Duplicates
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.