Struct tracing_subscriber::fmt::format::JsonVisitor[][src]

pub struct JsonVisitor<'a> { /* fields omitted */ }

The visitor produced by JsonFields’s MakeVisitor implementation.

Implementations

impl<'a> JsonVisitor<'a>[src]

pub fn new(writer: &'a mut dyn Write) -> Self[src]

Returns a new default visitor that formats to the provided writer.

Arguments

  • writer: the writer to format to.
  • is_empty: whether or not any fields have been previously written to that writer.

Trait Implementations

impl<'a> Debug for JsonVisitor<'a>[src]

impl<'a> Visit for JsonVisitor<'a>[src]

fn record_i64(&mut self, field: &Field, value: i64)[src]

Visit a signed 64-bit integer value.

fn record_u64(&mut self, field: &Field, value: u64)[src]

Visit an unsigned 64-bit integer value.

fn record_bool(&mut self, field: &Field, value: bool)[src]

Visit a boolean value.

fn record_str(&mut self, field: &Field, value: &str)[src]

Visit a string value.

impl<'a> VisitFmt for JsonVisitor<'a>[src]

impl<'a> VisitOutput<Result<(), Error>> for JsonVisitor<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for JsonVisitor<'a>

impl<'a> !Send for JsonVisitor<'a>

impl<'a> !Sync for JsonVisitor<'a>

impl<'a> Unpin for JsonVisitor<'a>

impl<'a> !UnwindSafe for JsonVisitor<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.