#[non_exhaustive]pub enum FormatterStyle {
Compact,
Full,
Pretty,
Json,
}Expand description
Output style for StdoutSink. See spec 20 § 3.6.
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.
Compact
Single line; tracing-fmt-shaped. Default — readable under tail -f and friendly to grep. Boundary-review § 4.6 + spec 20 § 3.6.
Full
Single line; full envelope with explicit field names.
Pretty
Multi-line; human-readable, dev-focused.
Json
Newline-delimited JSON; production stdout.
Trait Implementations§
Source§impl Clone for FormatterStyle
impl Clone for FormatterStyle
Source§fn clone(&self) -> FormatterStyle
fn clone(&self) -> FormatterStyle
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 FormatterStyle
impl Debug for FormatterStyle
Source§impl Default for FormatterStyle
impl Default for FormatterStyle
Source§fn default() -> FormatterStyle
fn default() -> FormatterStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for FormatterStyle
impl PartialEq for FormatterStyle
Source§fn eq(&self, other: &FormatterStyle) -> bool
fn eq(&self, other: &FormatterStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FormatterStyle
impl Eq for FormatterStyle
impl StructuralPartialEq for FormatterStyle
Auto Trait Implementations§
impl Freeze for FormatterStyle
impl RefUnwindSafe for FormatterStyle
impl Send for FormatterStyle
impl Sync for FormatterStyle
impl Unpin for FormatterStyle
impl UnsafeUnpin for FormatterStyle
impl UnwindSafe for FormatterStyle
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.