use super::*;
crate::euv_devtools_only_items! {
#[derive(Clone, Copy, Debug)]
pub(crate) struct InlineBreadcrumbSlot {
pub(crate) seq: u64,
pub(crate) frame_seq: u64,
pub(crate) kind_len: u8,
pub(crate) kind_buf: [u8; PANIC_MAX_KIND_BYTES],
pub(crate) detail_len: u8,
pub(crate) detail_buf: [u8; PANIC_MAX_DETAIL_BYTES],
}
#[derive(Debug)]
pub(crate) struct InlineRuntimeContextState {
pub(crate) route_len: usize,
pub(crate) route_buf: [u8; PANIC_MAX_ROUTE_BYTES],
pub(crate) theme_len: usize,
pub(crate) theme_buf: [u8; PANIC_MAX_THEME_BYTES],
pub(crate) overlays_len: usize,
pub(crate) overlays_buf: [u8; PANIC_MAX_OVERLAYS_BYTES],
pub(crate) viewport_width: f32,
pub(crate) viewport_height: f32,
pub(crate) scale_factor: f32,
pub(crate) frame_seq: u64,
pub(crate) is_idle: bool,
pub(crate) next_seq: u64,
pub(crate) write_cursor: usize,
pub(crate) count: usize,
pub(crate) breadcrumbs: [InlineBreadcrumbSlot; PANIC_BREADCRUMB_RING_CAPACITY],
}
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct RuntimeEventBreadcrumb {
#[get(type(copy))]
pub(crate) seq: u64,
pub(crate) kind: String,
pub(crate) detail: String,
#[get(type(copy))]
pub(crate) frame_seq: u64,
}
#[derive(Clone, Data, Debug, Default, Deserialize, PartialEq, Serialize)]
pub struct PanicRuntimeContext {
pub(crate) active_route: String,
#[get(type(copy))]
pub(crate) viewport_width: f32,
#[get(type(copy))]
pub(crate) viewport_height: f32,
#[get(type(copy))]
pub(crate) scale_factor: f32,
pub(crate) theme: String,
pub(crate) active_overlays: Vec<String>,
#[get(type(copy))]
pub(crate) frame_seq: u64,
#[get(type(copy))]
pub(crate) is_idle: bool,
pub(crate) recent_breadcrumbs: Vec<RuntimeEventBreadcrumb>,
}
#[derive(Clone, Data, Debug, Default, Deserialize, PartialEq, Serialize)]
pub struct PanicForensicsRecord {
pub(crate) timestamp_utc: String,
pub(crate) message: String,
pub(crate) location_file: String,
#[get(type(copy))]
pub(crate) location_line: u32,
#[get(type(copy))]
pub(crate) location_col: u32,
pub(crate) thread_name: String,
pub(crate) backtrace_frames: Vec<String>,
pub(crate) raw_backtrace: String,
pub(crate) runtime_context: PanicRuntimeContext,
}