pub enum TraceEvent {
Log {
message: String,
},
Variable {
port: u8,
name: String,
ty: &'static str,
value: Value,
},
Overflow,
CpuLoad {
load: f64,
},
}Expand description
A structured trace event, serialized to JSON for WebSocket clients.
Variants§
Log
A decoded line from the port-0 log stream.
Variable
A typed variable update from ports 1–7.
Overflow
The device reported a trace FIFO overflow.
CpuLoad
Estimated CPU utilization in [0, 1], derived from DWT PC sampling.
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
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§fn eq(&self, other: &TraceEvent) -> bool
fn eq(&self, other: &TraceEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TraceEvent
impl Serialize for TraceEvent
impl StructuralPartialEq 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