pub trait ProfilerMarker {
    const MARKER_TYPE_NAME: &'static str;

    fn schema() -> MarkerSchema;
    fn json_marker_data(&self) -> Value;
}

Required Associated Constants

The name of the marker type.

Required Methods

A static method that returns a MarkerSchema, which contains all the information needed to stream the display schema associated with a marker type.

A method that streams the marker payload data as a serde_json object.

Implementors