pub enum NoticeDuplicate {
Keep,
Replace,
}Expand description
Policy for an existing matching key. This is grouping, not event deduplication.
Variants§
Keep
Reject the incoming notice, preserving the existing entry and expiry.
Replace
Replace even a higher priority matching notice; restart its lifetime.
Trait Implementations§
Source§impl Clone for NoticeDuplicate
impl Clone for NoticeDuplicate
Source§fn clone(&self) -> NoticeDuplicate
fn clone(&self) -> NoticeDuplicate
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 NoticeDuplicate
impl Debug for NoticeDuplicate
Source§impl PartialEq for NoticeDuplicate
impl PartialEq for NoticeDuplicate
impl Copy for NoticeDuplicate
impl Eq for NoticeDuplicate
impl StructuralPartialEq for NoticeDuplicate
Auto Trait Implementations§
impl Freeze for NoticeDuplicate
impl RefUnwindSafe for NoticeDuplicate
impl Send for NoticeDuplicate
impl Sync for NoticeDuplicate
impl Unpin for NoticeDuplicate
impl UnwindSafe for NoticeDuplicate
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