pub enum AttentionOverflowPolicy {
DropOldestNonBlocking,
}Expand description
What a full attention queue does with the next item.
One variant, named rather than implied: a queue that silently drops is a queue nobody can reason about, and the day a second policy exists this is the field that already carries the choice.
Variants§
DropOldestNonBlocking
Discard the oldest item nobody is waiting on, and record it.
Implementations§
Trait Implementations§
Source§impl Clone for AttentionOverflowPolicy
impl Clone for AttentionOverflowPolicy
impl Copy for AttentionOverflowPolicy
Source§impl Debug for AttentionOverflowPolicy
impl Debug for AttentionOverflowPolicy
Source§impl Default for AttentionOverflowPolicy
impl Default for AttentionOverflowPolicy
Source§impl<'de> Deserialize<'de> for AttentionOverflowPolicy
impl<'de> Deserialize<'de> for AttentionOverflowPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AttentionOverflowPolicy
impl Display for AttentionOverflowPolicy
impl Eq for AttentionOverflowPolicy
Source§impl Hash for AttentionOverflowPolicy
impl Hash for AttentionOverflowPolicy
Source§impl Ord for AttentionOverflowPolicy
impl Ord for AttentionOverflowPolicy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AttentionOverflowPolicy
impl PartialEq for AttentionOverflowPolicy
Source§impl PartialOrd for AttentionOverflowPolicy
impl PartialOrd for AttentionOverflowPolicy
Source§impl Serialize for AttentionOverflowPolicy
impl Serialize for AttentionOverflowPolicy
impl StructuralPartialEq for AttentionOverflowPolicy
Auto Trait Implementations§
impl Freeze for AttentionOverflowPolicy
impl RefUnwindSafe for AttentionOverflowPolicy
impl Send for AttentionOverflowPolicy
impl Sync for AttentionOverflowPolicy
impl Unpin for AttentionOverflowPolicy
impl UnsafeUnpin for AttentionOverflowPolicy
impl UnwindSafe for AttentionOverflowPolicy
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