[][src]Struct rustracing::log::LogBuilder

pub struct LogBuilder { /* fields omitted */ }

Span log builder.

Implementations

impl LogBuilder[src]

pub fn field<T: Into<LogField>>(&mut self, field: T) -> &mut Self[src]

Adds the field.

pub fn time(&mut self, time: SystemTime) -> &mut Self[src]

Sets the value of timestamp to time.

pub fn std(&mut self) -> StdLogFieldsBuilder<'_>[src]

Returns a specialized builder for the standard log fields.

pub fn error(&mut self) -> StdErrorLogFieldsBuilder<'_>[src]

Returns a specialized builder for the standard error log fields.

Trait Implementations

impl Debug for LogBuilder[src]

Auto Trait Implementations

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,