Trait FormatEvent

Source
pub trait FormatEvent {
    type R: SpanRecorder + Send + Sync;

    // Required methods
    fn span_recorder(&self) -> Self::R;
    fn format_event<S: Serializer, SS: Subscriber + for<'a> LookupSpan<'a>>(
        &self,
        serializer: S,
        event: &Event<'_>,
        ctx: Context<'_, SS>,
    ) -> Result<S::Ok, S::Error>;
}

Required Associated Types§

Source

type R: SpanRecorder + Send + Sync

Required Methods§

Source

fn span_recorder(&self) -> Self::R

Source

fn format_event<S: Serializer, SS: Subscriber + for<'a> LookupSpan<'a>>( &self, serializer: S, event: &Event<'_>, ctx: Context<'_, SS>, ) -> Result<S::Ok, S::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<DFN, FS> FormatEvent for LogstashFormat<DFN, FS>

Source§

type R = DefaultSpanRecorder