pub struct Event {
    pub time: TimeSample,
    pub data: EventData,
}
Expand description

A tiny record of a method call which when played back can construct a profiling state. Several representations were considered, the most elaborate of which would write variable length data to the event stream. Ideally, data would be an &’static EventData to avoid writing more data than is necessary but limitations in the Rust compiler prevent this.

Fields

time: TimeSampledata: EventData

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.