Struct slog_term::CompactFormatBuilder[][src]

pub struct CompactFormatBuilder<D> where
    D: Decorator
{ /* fields omitted */ }

Streamer builder

Implementations

impl<D> CompactFormatBuilder<D> where
    D: Decorator
[src]

pub fn use_utc_timestamp(mut self: Self) -> Self[src]

Use the UTC time zone for the timestamp

pub fn use_local_timestamp(mut self: Self) -> Self[src]

Use the local time zone for the timestamp (default)

pub fn use_custom_timestamp<F>(mut self: Self, f: F) -> Self where
    F: ThreadSafeTimestampFn
[src]

Provide a custom function to generate the timestamp

pub fn use_custom_header_print<F>(mut self: Self, f: F) -> Self where
    F: ThreadSafeHeaderFn
[src]

Provide a function that print the header

If not used, slog_term::print_msg_header will be used

pub fn build(self) -> CompactFormat<D>[src]

Build the streamer

Auto Trait Implementations

impl<D> RefUnwindSafe for CompactFormatBuilder<D> where
    D: RefUnwindSafe
[src]

impl<D> Send for CompactFormatBuilder<D> where
    D: Send
[src]

impl<D> Sync for CompactFormatBuilder<D> where
    D: Sync
[src]

impl<D> Unpin for CompactFormatBuilder<D> where
    D: Unpin
[src]

impl<D> UnwindSafe for CompactFormatBuilder<D> where
    D: UnwindSafe
[src]

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.