pub enum SinkPolicy {
FailDecision {
timeout_ms: u64,
},
Backpressure {
max_pending: usize,
enqueue_timeout_ms: u64,
delivery_timeout_ms: u64,
},
DropCounted {
max_pending: usize,
delivery_timeout_ms: u64,
},
}Expand description
How evidence reaches the sink, and what the caller receives.
Variants§
FailDecision
Deliver inline; the decision fails unless the sink acknowledges within
timeout_ms.
Backpressure
Queue for the worker, waiting at most enqueue_timeout_ms for one of
max_pending slots; the decision fails if none frees.
DropCounted
Queue if a slot is free; otherwise drop the record and count it.
Trait Implementations§
Source§impl Clone for SinkPolicy
impl Clone for SinkPolicy
impl Copy for SinkPolicy
Source§impl Debug for SinkPolicy
impl Debug for SinkPolicy
impl Eq for SinkPolicy
Source§impl PartialEq for SinkPolicy
impl PartialEq for SinkPolicy
impl StructuralPartialEq for SinkPolicy
Auto Trait Implementations§
impl Freeze for SinkPolicy
impl RefUnwindSafe for SinkPolicy
impl Send for SinkPolicy
impl Sync for SinkPolicy
impl Unpin for SinkPolicy
impl UnsafeUnpin for SinkPolicy
impl UnwindSafe for SinkPolicy
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