INNER CODE UNIT · Rust

with_timer

FeatureProbe/FeatureProbe · server/src/base.rs:206

    pub fn with_timer(timer: T2) -> Self {
        LogFormatter { timer }
    }
}

impl<C, N, T> FormatEvent<C, N> for LogFormatter<T>
where
    C: Subscriber + for<'a> LookupSpan<'a>,
    N: for<'a> FormatFields<'a> + 'static,
    T: FormatTime,
{
    fn format_event(
        &self,
        ctx: &FmtContext<'_, C, N>,
        mut writer: format::Writer<'_>,
        event: &Event<'_>,
    ) -> std::fmt::Result {
        let normalized = event.normalized_metadata();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…