pub enum SubscriberOverflow {
DropNewest,
DropOldest,
Disconnect,
}Expand description
Overflow behavior for a bounded event subscription queue.
These policies are applied independently per subscriber when that subscriber’s queue is full.
Variants§
DropNewest
Leave the existing queue unchanged and discard the newly published event.
DropOldest
Remove the oldest queued event and enqueue the newly published event.
Disconnect
Disconnect the subscriber and clear its queue.
Trait Implementations§
Source§impl Clone for SubscriberOverflow
impl Clone for SubscriberOverflow
Source§fn clone(&self) -> SubscriberOverflow
fn clone(&self) -> SubscriberOverflow
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 moreSource§impl Debug for SubscriberOverflow
impl Debug for SubscriberOverflow
Source§impl PartialEq for SubscriberOverflow
impl PartialEq for SubscriberOverflow
Source§fn eq(&self, other: &SubscriberOverflow) -> bool
fn eq(&self, other: &SubscriberOverflow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SubscriberOverflow
impl Eq for SubscriberOverflow
impl StructuralPartialEq for SubscriberOverflow
Auto Trait Implementations§
impl Freeze for SubscriberOverflow
impl RefUnwindSafe for SubscriberOverflow
impl Send for SubscriberOverflow
impl Sync for SubscriberOverflow
impl Unpin for SubscriberOverflow
impl UnsafeUnpin for SubscriberOverflow
impl UnwindSafe for SubscriberOverflow
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