Enum Overflow
pub enum Overflow {
RejectNewest,
EvictOldest,
}Expand description
The action taken when an individual EventQueue::send encounters a full queue.
Atomic batches always reject if they do not fit, regardless of this policy.
Variants§
RejectNewest
Return the new event to its sender without changing the queue.
EvictOldest
Accept the new event and return the oldest queued event to its sender.
Trait Implementations§
impl Copy for Overflow
impl Eq for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Freeze for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnwindSafe for Overflow
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