pub struct CustomEventsConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CustomEventsConfigBuilder<S>
impl<S: State> CustomEventsConfigBuilder<S>
Sourcepub fn build(self) -> CustomEventsConfigwhere
S: IsComplete,
pub fn build(self) -> CustomEventsConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn minimum_interval(
self,
value: Duration,
) -> CustomEventsConfigBuilder<SetMinimumInterval<S>>where
S::MinimumInterval: IsUnset,
pub fn minimum_interval(
self,
value: Duration,
) -> CustomEventsConfigBuilder<SetMinimumInterval<S>>where
S::MinimumInterval: IsUnset,
Optional (Some / Option setters).
Default: <Duration as Default>::default().
Minimum time between callback invocations.
Defaults to Duration::ZERO, which runs the callback during every
flush cycle while telemetry is enabled.
Sourcepub fn maybe_minimum_interval(
self,
value: Option<Duration>,
) -> CustomEventsConfigBuilder<SetMinimumInterval<S>>where
S::MinimumInterval: IsUnset,
pub fn maybe_minimum_interval(
self,
value: Option<Duration>,
) -> CustomEventsConfigBuilder<SetMinimumInterval<S>>where
S::MinimumInterval: IsUnset,
Optional (Some / Option setters).
Default: <Duration as Default>::default().
Minimum time between callback invocations.
Defaults to Duration::ZERO, which runs the callback during every
flush cycle while telemetry is enabled.
Auto Trait Implementations§
impl<S> Freeze for CustomEventsConfigBuilder<S>
impl<S> RefUnwindSafe for CustomEventsConfigBuilder<S>
impl<S> Send for CustomEventsConfigBuilder<S>
impl<S> Sync for CustomEventsConfigBuilder<S>
impl<S> Unpin for CustomEventsConfigBuilder<S>
impl<S> UnsafeUnpin for CustomEventsConfigBuilder<S>
impl<S> UnwindSafe for CustomEventsConfigBuilder<S>
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> 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