#[non_exhaustive]pub enum ServicePreset {
Dev,
Production,
InMemory,
}Expand description
Built-in service presets.
Covers the three shapes every consumer eventually wants. Non-preset
wiring (custom sinks, fan-out, etc.) composes on top via
InitBuilder::with_sink_for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dev
Compact stdout on every tier. No OTLP, no AUDIT spool beyond stdout. Default — matches the shape local dev + CI smoke tests want out of the box.
Production
Production wiring: OTLP sinks on LOG / METRIC / TRACE (when
endpoint env vars are set) and a stdout fallback. AUDIT is left
unwired — services with a compliance story set it explicitly
via InitBuilder::with_sink_for.
InMemory
Tests: wire InMemoryObserver directly. All sinks/preset
overrides on the builder are ignored. assert_emitted! and
InMemoryHandle::drain read the captured stream.
Trait Implementations§
Source§impl Clone for ServicePreset
impl Clone for ServicePreset
Source§fn clone(&self) -> ServicePreset
fn clone(&self) -> ServicePreset
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 ServicePreset
impl Debug for ServicePreset
Source§impl Default for ServicePreset
impl Default for ServicePreset
Source§fn default() -> ServicePreset
fn default() -> ServicePreset
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServicePreset
impl PartialEq for ServicePreset
Source§fn eq(&self, other: &ServicePreset) -> bool
fn eq(&self, other: &ServicePreset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ServicePreset
impl Eq for ServicePreset
impl StructuralPartialEq for ServicePreset
Auto Trait Implementations§
impl Freeze for ServicePreset
impl RefUnwindSafe for ServicePreset
impl Send for ServicePreset
impl Sync for ServicePreset
impl Unpin for ServicePreset
impl UnsafeUnpin for ServicePreset
impl UnwindSafe for ServicePreset
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.