[][src]Struct qlog::Trace

pub struct Trace {
    pub vantage_point: VantagePoint,
    pub title: Option<String>,
    pub description: Option<String>,
    pub configuration: Option<Configuration>,
    pub common_fields: Option<CommonFields>,
    pub event_fields: Vec<String>,
    pub events: Vec<Vec<EventField>>,
}

Fields

vantage_point: VantagePointtitle: Option<String>description: Option<String>configuration: Option<Configuration>common_fields: Option<CommonFields>event_fields: Vec<String>events: Vec<Vec<EventField>>

Implementations

impl Trace[src]

Helper functions for using a qlog trace.

pub fn new(
    vantage_point: VantagePoint,
    title: Option<String>,
    description: Option<String>,
    configuration: Option<Configuration>,
    common_fields: Option<CommonFields>
) -> Self
[src]

Creates a new qlog trace with the hard-coded event_fields ["relative_time", "category", "event", "data"]

pub fn push_event(&mut self, relative_time: Duration, event: Event)[src]

Trait Implementations

impl Clone for Trace[src]

impl Serialize for Trace[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.