Struct tracing_subscriber::fmt::format::JsonFields
source · [−]pub struct JsonFields { /* private fields */ }
Expand description
The JSON FormatFields
implementation.
Implementations
sourceimpl JsonFields
impl JsonFields
sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new JSON FormatFields
implementation.
Trait Implementations
sourceimpl Debug for JsonFields
impl Debug for JsonFields
sourceimpl Default for JsonFields
impl Default for JsonFields
sourceimpl<'a> FormatFields<'a> for JsonFields
impl<'a> FormatFields<'a> for JsonFields
sourcefn format_fields<R: RecordFields>(
&self,
writer: &'a mut dyn Write,
fields: R
) -> Result
fn format_fields<R: RecordFields>(
&self,
writer: &'a mut dyn Write,
fields: R
) -> Result
Format the provided fields
to the provided writer
, returning a result.
sourcefn add_fields(&self, current: &'a mut String, fields: &Record<'_>) -> Result
fn add_fields(&self, current: &'a mut String, fields: &Record<'_>) -> Result
Record additional field(s) on an existing span.
By default, this appends a space to the current set of fields if it is
non-empty, and then calls self.format_fields
. If different behavior is
required, the default implementation of this method can be overridden.
Auto Trait Implementations
impl RefUnwindSafe for JsonFields
impl Send for JsonFields
impl Sync for JsonFields
impl Unpin for JsonFields
impl UnwindSafe for JsonFields
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more