Enum oni_trace::Event

source ·
pub enum Event {
    Barrier,
    Meta {
        base: Base,
    },
    Instant {
        base: Base,
        s: &'static str,
        ts: u64,
    },
    AsyncStart {
        base: Base,
        id: usize,
        scope: Option<Cow<'static, str>>,
        ts: u64,
    },
    AsyncInstant {
        base: Base,
        id: usize,
        scope: Option<Cow<'static, str>>,
        ts: u64,
    },
    AsyncEnd {
        base: Base,
        id: usize,
        scope: Option<Cow<'static, str>>,
        ts: u64,
    },
    Complete {
        base: Base,
        dur: u64,
        ts: u64,
    },
    FlowStart {
        base: Base,
        id: usize,
        ts: u64,
    },
    FlowStep {
        base: Base,
        id: usize,
        ts: u64,
    },
    FlowEnd {
        base: Base,
        id: usize,
        ts: u64,
    },
}

Variants§

§

Barrier

§

Meta

Fields

§base: Base
§

Instant

Fields

§base: Base
§s: &'static str
§ts: u64
§

AsyncStart

Fields

§base: Base
§id: usize
§scope: Option<Cow<'static, str>>
§ts: u64
§

AsyncInstant

Fields

§base: Base
§id: usize
§scope: Option<Cow<'static, str>>
§ts: u64
§

AsyncEnd

Fields

§base: Base
§id: usize
§scope: Option<Cow<'static, str>>
§ts: u64
§

Complete

Fields

§base: Base
§dur: u64
§ts: u64
§

FlowStart

Fields

§base: Base
§id: usize
§ts: u64
§

FlowStep

Fields

§base: Base
§id: usize
§ts: u64
§

FlowEnd

Fields

§base: Base
§id: usize
§ts: u64

Implementations§

Trait Implementations§

Serialize this value into the given Serde serializer. 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 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.