pub enum HandlerScope {
Exclusive,
Shared,
}Expand description
Whether a handler’s match is consumed or leaves the entry available.
HandlerScope::Exclusive handlers consume their matches — once
claimed, no other handler sees the entry. HandlerScope::Shared
handlers let other handlers also process the same entry (future
use-cases like audit/indexing). At most one Exclusive + Catchall
handler may exist in a registry; this is validated at build time.
Variants§
Exclusive
Trait Implementations§
Source§impl Clone for HandlerScope
impl Clone for HandlerScope
Source§fn clone(&self) -> HandlerScope
fn clone(&self) -> HandlerScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandlerScope
impl Debug for HandlerScope
Source§impl PartialEq for HandlerScope
impl PartialEq for HandlerScope
impl Copy for HandlerScope
impl Eq for HandlerScope
impl StructuralPartialEq for HandlerScope
Auto Trait Implementations§
impl Freeze for HandlerScope
impl RefUnwindSafe for HandlerScope
impl Send for HandlerScope
impl Sync for HandlerScope
impl Unpin for HandlerScope
impl UnsafeUnpin for HandlerScope
impl UnwindSafe for HandlerScope
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.