pub struct DumpTriggerConfig { /* private fields */ }Available on crate feature
pipeline only.Expand description
On-demand dump configuration, passed to
with_dump_trigger.
Flips the worker from continuous processing into on-demand operation:
segments keep accumulating in the ring and the pipeline only runs when the
application requests a dump. Configure coalescing with
debounce; the resulting DumpTrigger is then reached
through any Dial9Handle for the runtime
via dump_trigger.
Implementations§
Source§impl DumpTriggerConfig
impl DumpTriggerConfig
Sourcepub fn debounce(&mut self, window: Duration)
pub fn debounce(&mut self, window: Duration)
Coalesce duplicate triggers within window into a single dump.
The first trigger in a quiet period dispatches normally; any trigger
arriving within window of that dispatch resolves
DumpError::Coalesced (naming the dump it folded into) without
starting a new dump. The gate is shared by every
dump_trigger clone,
so the effective rate is at most one dump per window across all
callers.
pub fn debounce_window(&self) -> Option<Duration>
Trait Implementations§
Source§impl Clone for DumpTriggerConfig
impl Clone for DumpTriggerConfig
Source§fn clone(&self) -> DumpTriggerConfig
fn clone(&self) -> DumpTriggerConfig
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 DumpTriggerConfig
impl Debug for DumpTriggerConfig
Source§impl Default for DumpTriggerConfig
impl Default for DumpTriggerConfig
Source§fn default() -> DumpTriggerConfig
fn default() -> DumpTriggerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DumpTriggerConfig
impl RefUnwindSafe for DumpTriggerConfig
impl Send for DumpTriggerConfig
impl Sync for DumpTriggerConfig
impl Unpin for DumpTriggerConfig
impl UnsafeUnpin for DumpTriggerConfig
impl UnwindSafe for DumpTriggerConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<V, F> ValueFormatter<&V> for F
impl<V, F> ValueFormatter<&V> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &&V)
fn format_value(writer: impl ValueWriter, value: &&V)
Write
value to writerSource§impl<V, F> ValueFormatter<Arc<V>> for F
impl<V, F> ValueFormatter<Arc<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Arc<V>)
fn format_value(writer: impl ValueWriter, value: &Arc<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Box<V>> for F
impl<V, F> ValueFormatter<Box<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Box<V>)
fn format_value(writer: impl ValueWriter, value: &Box<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Cow<'_, V>> for F
impl<V, F> ValueFormatter<Cow<'_, V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Option<V>)
fn format_value(writer: impl ValueWriter, value: &Option<V>)
Write
value to writer