Skip to main content

DiagEventKind

Enum DiagEventKind 

Source
pub enum DiagEventKind {
Show 24 variants FrameStart { root: Option<u128>, }, FrameEnd { stats: FrameStats, }, DiffSummary { nodes_total: u32, nodes_created: u32, nodes_removed: u32, nodes_changed: u32, dirty_layout: u32, dirty_paint: u32, }, LayoutSummary { nodes: u32, dirty_count: u32, full_rebuild: bool, duration_ns: u64, }, PaintSummary { segments_reused: u32, segments_regenerated: u32, paint_ops_total: u32, }, PaintNode { node: u128, note: Option<String>, }, PaintNodeRect { node: u128, x: f32, y: f32, w: f32, h: f32, note: Option<String>, }, NodeProps { node: u128, op_tag: String, flex_grow: f32, flex_shrink: f32, width: Option<f32>, height: Option<f32>, }, RasterSummary { cache_hits: u32, cache_misses: u32, tiles_rasterized: u32, }, RendererSelected { active: String, requested: String, backend: Option<String>, adapter: Option<String>, fallback_reason: Option<String>, width: u32, height: u32, scale_factor: f64, }, FramePerformance { renderer: String, total_ms: f64, }, InputLatency { renderer: String, latency_ms: f64, }, AnimationSummary { active_count: u32, started: u32, replaced: u32, ended: u32, }, MediaSummary { video_nodes: u32, audio_nodes: u32, embeds_total: u32, }, PortalsComposed { portal_count: u32, }, AnchorPlacement { widget: u128, node: u128, rect_x: f32, rect_y: f32, rect_w: f32, rect_h: f32, place_left: f32, place_top: f32, note: Option<String>, }, InvariantViolation { kind: String, node: Option<u128>, details: String, dump_ref: Option<String>, }, InputEvent { kind: String, target: Option<u128>, position: Option<(f32, f32)>, }, MediaEvent { kind: String, id: Option<u128>, duration_ms: Option<u64>, position_ms: Option<u64>, }, TextInputAutoScroll { scroll_id: u128, text_id: u128, text_len: u32, measured_w: f32, line_h: f32, viewport_x: f32, viewport_w: f32, content_w: f32, caret_abs_x: f32, offset_before: f32, offset_after: f32, }, ScrollExtent { node: u128, viewport_w: f32, viewport_h: f32, content_w: f32, content_h: f32, note: Option<String>, }, ScrollUpdate { node: u128, axis: String, point_x: f32, point_y: f32, delta: f32, old_offset: f32, new_offset: f32, max_offset: f32, viewport_w: f32, viewport_h: f32, content_w: f32, content_h: f32, }, ScrollPaintTranslate { node: u128, axis: String, offset: f32, translate_x: f32, translate_y: f32, }, TextLayoutPerformance { text_len: u32, is_rich: bool, duration_ns: u64, },
}
Expand description

The concrete payload for a diagnostic event.

Each variant covers a specific pipeline stage or cross-cutting concern. Serialized with #[serde(tag = "kind", content = "payload")].

Variants§

§

FrameStart

Fields

§root: Option<u128>
§

FrameEnd

Fields

§

DiffSummary

Fields

§nodes_total: u32
§nodes_created: u32
§nodes_removed: u32
§nodes_changed: u32
§dirty_layout: u32
§dirty_paint: u32
§

LayoutSummary

Fields

§nodes: u32
§dirty_count: u32
§full_rebuild: bool
§duration_ns: u64
§

PaintSummary

Fields

§segments_reused: u32
§segments_regenerated: u32
§paint_ops_total: u32
§

PaintNode

Fields

§node: u128
§

PaintNodeRect

Fields

§node: u128
§

NodeProps

Fields

§node: u128
§op_tag: String
§flex_grow: f32
§flex_shrink: f32
§width: Option<f32>
§height: Option<f32>
§

RasterSummary

Fields

§cache_hits: u32
§cache_misses: u32
§tiles_rasterized: u32
§

RendererSelected

Fields

§active: String
§requested: String
§backend: Option<String>
§adapter: Option<String>
§fallback_reason: Option<String>
§width: u32
§height: u32
§scale_factor: f64
§

FramePerformance

Fields

§renderer: String
§total_ms: f64
§

InputLatency

Fields

§renderer: String
§latency_ms: f64
§

AnimationSummary

Fields

§active_count: u32
§started: u32
§replaced: u32
§ended: u32
§

MediaSummary

Fields

§video_nodes: u32
§audio_nodes: u32
§embeds_total: u32
§

PortalsComposed

Fields

§portal_count: u32
§

AnchorPlacement

Fields

§widget: u128
§node: u128
§rect_x: f32
§rect_y: f32
§rect_w: f32
§rect_h: f32
§place_left: f32
§place_top: f32
§

InvariantViolation

Fields

§kind: String
§node: Option<u128>
§details: String
§dump_ref: Option<String>
§

InputEvent

Fields

§kind: String
§target: Option<u128>
§position: Option<(f32, f32)>
§

MediaEvent

Fields

§kind: String
§duration_ms: Option<u64>
§position_ms: Option<u64>
§

TextInputAutoScroll

Fields

§scroll_id: u128
§text_id: u128
§text_len: u32
§measured_w: f32
§line_h: f32
§viewport_x: f32
§viewport_w: f32
§content_w: f32
§caret_abs_x: f32
§offset_before: f32
§offset_after: f32
§

ScrollExtent

Fields

§node: u128
§viewport_w: f32
§viewport_h: f32
§content_w: f32
§content_h: f32
§

ScrollUpdate

Fields

§node: u128
§axis: String
§point_x: f32
§point_y: f32
§delta: f32
§old_offset: f32
§new_offset: f32
§max_offset: f32
§viewport_w: f32
§viewport_h: f32
§content_w: f32
§content_h: f32
§

ScrollPaintTranslate

Fields

§node: u128
§axis: String
§offset: f32
§translate_x: f32
§translate_y: f32
§

TextLayoutPerformance

Fields

§text_len: u32
§is_rich: bool
§duration_ns: u64

Trait Implementations§

Source§

impl Clone for DiagEventKind

Source§

fn clone(&self) -> DiagEventKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DiagEventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DiagEventKind

Source§

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 Serialize for DiagEventKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,