pub enum BackpressureMode {
DropNewest,
DropOldest,
FailProducer,
Sample {
rate: u32,
},
}Expand description
Backpressure policy when ring buffers are full.
Variants§
DropNewest
Drop the newest event (the one being inserted).
DropOldest
Drop the oldest event in the buffer to make room.
FailProducer
Return an error to the producer.
Sample
Sample events: keep 1 in N events.
Trait Implementations§
Source§impl Clone for BackpressureMode
impl Clone for BackpressureMode
Source§fn clone(&self) -> BackpressureMode
fn clone(&self) -> BackpressureMode
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 BackpressureMode
impl Debug for BackpressureMode
Source§impl PartialEq for BackpressureMode
impl PartialEq for BackpressureMode
Source§fn eq(&self, other: &BackpressureMode) -> bool
fn eq(&self, other: &BackpressureMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackpressureMode
impl Eq for BackpressureMode
impl StructuralPartialEq for BackpressureMode
Auto Trait Implementations§
impl Freeze for BackpressureMode
impl RefUnwindSafe for BackpressureMode
impl Send for BackpressureMode
impl Sync for BackpressureMode
impl Unpin for BackpressureMode
impl UnsafeUnpin for BackpressureMode
impl UnwindSafe for BackpressureMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.