pub enum TraceEvent {
ContextOptions(ContextOptions),
Before(BeforeEvent),
Input(InputEvent),
Log(LogEvent),
After(AfterEvent),
Console(ConsoleEvent),
Event(SystemEvent),
FrameSnapshot(FrameSnapshotEvent),
ScreencastFrame(ScreencastFrameEvent),
Unknown(RawEvent),
}Expand description
Strongly-typed variants for the event kinds this version of the
parser models. Unknown / unmodelled kinds surface as
TraceEvent::Unknown to preserve the underlying JSON.
Variants§
ContextOptions(ContextOptions)
Before(BeforeEvent)
Input(InputEvent)
Log(LogEvent)
After(AfterEvent)
Console(ConsoleEvent)
Event(SystemEvent)
FrameSnapshot(FrameSnapshotEvent)
ScreencastFrame(ScreencastFrameEvent)
Unknown(RawEvent)
Catch-all preserving the raw payload. Carries RawEvent so
users keep full access to the JSON for kinds we don’t model.
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more