pub trait ProfilerMarker {
const MARKER_TYPE_NAME: &'static str;
fn schema() -> MarkerSchema;
fn json_marker_data(&self) -> Value;
}
Required Associated Constants
const MARKER_TYPE_NAME: &'static str
const MARKER_TYPE_NAME: &'static str
The name of the marker type.
Required Methods
fn schema() -> MarkerSchema
fn schema() -> MarkerSchema
A static method that returns a MarkerSchema
, which contains all the
information needed to stream the display schema associated with a
marker type.
fn json_marker_data(&self) -> Value
fn json_marker_data(&self) -> Value
A method that streams the marker payload data as a serde_json object.