pub enum PersistOverflow {
Drop,
Block,
}Expand description
Behavior when the L2 persist queue is full.
Variants§
Drop
Non-blocking try_send; drop the job and increment persist_queue_drops (default).
Block
Apply backpressure: block the calling thread until the job is enqueued (or the queue closes).
When called from a Tokio worker thread, uses block_in_place so the runtime can schedule
other work while waiting. Prefer this for scripts that must not lose emits under load.
Trait Implementations§
Source§impl Clone for PersistOverflow
impl Clone for PersistOverflow
Source§fn clone(&self) -> PersistOverflow
fn clone(&self) -> PersistOverflow
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 moreimpl Copy for PersistOverflow
Source§impl Debug for PersistOverflow
impl Debug for PersistOverflow
Source§impl Default for PersistOverflow
impl Default for PersistOverflow
Source§fn default() -> PersistOverflow
fn default() -> PersistOverflow
Returns the “default value” for a type. Read more
impl Eq for PersistOverflow
Source§impl PartialEq for PersistOverflow
impl PartialEq for PersistOverflow
impl StructuralPartialEq for PersistOverflow
Auto Trait Implementations§
impl Freeze for PersistOverflow
impl RefUnwindSafe for PersistOverflow
impl Send for PersistOverflow
impl Sync for PersistOverflow
impl Unpin for PersistOverflow
impl UnsafeUnpin for PersistOverflow
impl UnwindSafe for PersistOverflow
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§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.