pub enum MarkerTiming {
    Instant(Timestamp),
    Interval(TimestampTimestamp),
    IntervalStart(Timestamp),
    IntervalEnd(Timestamp),
}
Expand description

Specifies timestamps for a marker.

Variants§

§

Instant(Timestamp)

Instant markers describe a single point in time.

§

Interval(TimestampTimestamp)

Interval markers describe a time interval with a start and end timestamp.

§

IntervalStart(Timestamp)

A marker for just the start of an actual marker. Can be paired with an IntervalEnd marker of the same name; if no end marker is supplied, this creates a marker that extends to the end of the profile.

This can be used for long-running markers for pieces of activity that may not have completed by the time the profile is captured.

§

IntervalEnd(Timestamp)

A marker for just the end of an actual marker. Can be paired with an IntervalStart marker of the same name; if no start marker is supplied, this creates a marker which started before the beginning of the profile.

This can be used to mark pieces of activity which started before profiling began.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.