Struct slog_term::CompactFormatBuilder [−][src]
Streamer builder
Implementations
impl<D> CompactFormatBuilder<D> where
D: Decorator,
[src][−]
D: Decorator,
pub fn use_utc_timestamp(self) -> Self
[src][−]
Use the UTC time zone for the timestamp
pub fn use_local_timestamp(self) -> Self
[src][−]
Use the local time zone for the timestamp (default)
pub fn use_custom_timestamp<F>(self, f: F) -> Self where
F: ThreadSafeTimestampFn,
[src][−]
F: ThreadSafeTimestampFn,
Provide a custom function to generate the timestamp
pub fn build(self) -> CompactFormat<D>
[src][−]
Build the streamer
Auto Trait Implementations
impl<D> RefUnwindSafe for CompactFormatBuilder<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for CompactFormatBuilder<D> where
D: Send,
D: Send,
impl<D> Sync for CompactFormatBuilder<D> where
D: Sync,
D: Sync,
impl<D> Unpin for CompactFormatBuilder<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for CompactFormatBuilder<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,