#[non_exhaustive]pub struct FieldsFormatter {}
Expand description
A formatter that formats span fields into logfmt.
Trait Implementations§
Source§impl Default for FieldsFormatter
impl Default for FieldsFormatter
Source§fn default() -> FieldsFormatter
fn default() -> FieldsFormatter
Returns the “default value” for a type. Read more
Source§impl<'writer> FormatFields<'writer> for FieldsFormatter
impl<'writer> FormatFields<'writer> for FieldsFormatter
Source§fn format_fields<R: RecordFields>(
&self,
writer: Writer<'writer>,
fields: R,
) -> Result
fn format_fields<R: RecordFields>( &self, writer: Writer<'writer>, fields: R, ) -> Result
Format the provided
fields
to the provided Writer
, returning a result.Source§fn add_fields(
&self,
current: &'writer mut FormattedFields<Self>,
fields: &Record<'_>,
) -> Result<(), Error>
fn add_fields( &self, current: &'writer mut FormattedFields<Self>, fields: &Record<'_>, ) -> Result<(), Error>
Record additional field(s) on an existing span. Read more
Auto Trait Implementations§
impl Freeze for FieldsFormatter
impl RefUnwindSafe for FieldsFormatter
impl Send for FieldsFormatter
impl Sync for FieldsFormatter
impl Unpin for FieldsFormatter
impl UnwindSafe for FieldsFormatter
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