Trait slog_term::ThreadSafeHeaderFn[][src]

pub trait ThreadSafeHeaderFn: Fn(&dyn ThreadSafeTimestampFn<Output = Result<()>>, &mut dyn RecordDecorator, &Record<'_>, bool) -> Result<bool> + Send + Sync + UnwindSafe + RefUnwindSafe + 'static { }

Threadsafe header formatting function type

To satify slog-rs thread and unwind safety requirements, the bounds expressed by this trait need to satisfied for a function to be used in timestamp formatting.

Implementors

impl<F> ThreadSafeHeaderFn for F where
    F: Fn(&dyn ThreadSafeTimestampFn<Output = Result<()>>, &mut dyn RecordDecorator, &Record<'_>, bool) -> Result<bool> + Send + Sync,
    F: UnwindSafe + RefUnwindSafe + 'static,
    F: ?Sized
[src]

Loading content...