Skip to main content

ToEvent

Trait ToEvent 

Source
pub trait ToEvent {
    type Props<'a>: Props
       where Self: 'a;

    // Required method
    fn to_event<'a>(&'a self) -> Event<'a, Self::Props<'a>>;
}
Expand description

Convert a value into an Event.

Required Associated Types§

Source

type Props<'a>: Props where Self: 'a

The kind of Props on the resulting value.

Required Methods§

Source

fn to_event<'a>(&'a self) -> Event<'a, Self::Props<'a>>

Perform the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T> ToEvent for &'a T
where T: ToEvent + ?Sized,

Source§

type Props<'b> = <T as ToEvent>::Props<'b> where &'a T: 'b

Source§

fn to_event<'b>(&'b self) -> Event<'b, <&'a T as ToEvent>::Props<'b>>

Implementors§

Source§

impl<'a, P: Props> ToEvent for Metric<'a, P>

Source§

type Props<'b> = &'b Metric<'a, P> where Self: 'b

Source§

impl<'a, P: Props> ToEvent for Span<'a, P>

Source§

type Props<'b> = &'b Span<'a, P> where Self: 'b

Source§

impl<'a, P> ToEvent for Event<'a, P>
where P: Props,

Source§

type Props<'b> = &'b P where Event<'a, P>: 'b