pub enum CollectionOverflowBehavior {
DropAdditionalData,
DropOldestData,
}Expand description
Controls which output is retained once a bounded in-memory collection reaches its limit.
Variants§
DropAdditionalData
Keep the first retained output and discard additional output.
DropOldestData
Keep the newest retained output by evicting older retained output.
Trait Implementations§
Source§impl Clone for CollectionOverflowBehavior
impl Clone for CollectionOverflowBehavior
Source§fn clone(&self) -> CollectionOverflowBehavior
fn clone(&self) -> CollectionOverflowBehavior
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 CollectionOverflowBehavior
impl Debug for CollectionOverflowBehavior
Source§impl Default for CollectionOverflowBehavior
impl Default for CollectionOverflowBehavior
Source§fn default() -> CollectionOverflowBehavior
fn default() -> CollectionOverflowBehavior
Returns the “default value” for a type. Read more
impl Copy for CollectionOverflowBehavior
impl Eq for CollectionOverflowBehavior
impl StructuralPartialEq for CollectionOverflowBehavior
Auto Trait Implementations§
impl Freeze for CollectionOverflowBehavior
impl RefUnwindSafe for CollectionOverflowBehavior
impl Send for CollectionOverflowBehavior
impl Sync for CollectionOverflowBehavior
impl Unpin for CollectionOverflowBehavior
impl UnsafeUnpin for CollectionOverflowBehavior
impl UnwindSafe for CollectionOverflowBehavior
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