pub enum TraceEvent {
CommandStart {
id: u64,
name: String,
timestamp: Instant,
},
CommandEnd {
id: u64,
duration: Duration,
result: String,
},
MessageSent {
id: u64,
message: String,
timestamp: Instant,
},
MessageReceived {
id: u64,
message: String,
timestamp: Instant,
},
EventProcessed {
event_type: String,
timestamp: Instant,
},
FrameRendered {
duration: Duration,
fps: f32,
},
Custom {
label: String,
data: String,
},
}Expand description
Types of events that can be traced
Variants§
CommandStart
Command execution started
Fields
CommandEnd
Command execution completed
Fields
MessageSent
Message sent
Fields
MessageReceived
Message received
Fields
EventProcessed
Event processed
Fields
FrameRendered
Frame rendered
Custom
Custom trace event
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 moreSource§impl Debug for TraceEvent
impl Debug for TraceEvent
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter