pub enum TargetEvent {
WidgetTreeDeltas {
window: DevWindowId,
deltas: Vec<TreeDelta>,
tree_revision: u64,
},
FrameRecord(FrameRecordEvent),
DeepTrace(DeepFrameTrace),
WidgetSelectedByUser {
window: DevWindowId,
id: DevWidgetId,
},
Log {
level: String,
target: String,
message: String,
},
WindowsChanged,
DroppedTelemetry {
count: u64,
},
InspectModeEnded {
window: DevWindowId,
},
}Expand description
Target → DevTools unsolicited events (bounded queues apply upstream).
Variants§
WidgetTreeDeltas
Incremental retained-tree update for a window that the client has explicitly inspected. Targets never serialize these while no client has subscribed to a tree.
FrameRecord(FrameRecordEvent)
DeepTrace(DeepFrameTrace)
WidgetSelectedByUser
Log
WindowsChanged
DroppedTelemetry
InspectModeEnded
Fields
§
window: DevWindowIdTrait Implementations§
Source§impl Clone for TargetEvent
impl Clone for TargetEvent
Source§impl Debug for TargetEvent
impl Debug for TargetEvent
Source§impl<'de> Deserialize<'de> for TargetEvent
impl<'de> Deserialize<'de> for TargetEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TargetEvent
impl PartialEq for TargetEvent
Source§impl Serialize for TargetEvent
impl Serialize for TargetEvent
impl StructuralPartialEq for TargetEvent
Auto Trait Implementations§
impl Forget for TargetEvent
impl Freeze for TargetEvent
impl RefUnwindSafe for TargetEvent
impl Send for TargetEvent
impl Sync for TargetEvent
impl Unpin for TargetEvent
impl UnsafeUnpin for TargetEvent
impl UnwindSafe for TargetEvent
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