Skip to main content

TraceSemantics

Struct TraceSemantics 

Source
pub struct TraceSemantics {
    pub command: Option<String>,
    pub shared_state: Option<String>,
    pub cache_scope: Option<String>,
    pub text_runtime: Option<String>,
    pub locale: Option<String>,
    pub persistence: Option<String>,
    pub a11y_digest: String,
    pub focus: Option<String>,
    pub semantics_bumps: u32,
}
Expand description

逐帧语义摘要。用于定位分歧,不替代逐字节 trace 硬门禁。

command / shared_state 是可选注入:只有真正接入命令路由/共享状态的宿主才写; 没写就是「未量到」。a11y_digest 由 Agent replay 从语义树稳定计算。

Fields§

§command: Option<String>§shared_state: Option<String>§cache_scope: Option<String>

QueryCache 作用域 / invalidation 摘要;宿主未注入时为「未量到」。

§text_runtime: Option<String>

文本运行时 generation / DPR / 宽度签名摘要;宿主未注入时为「未量到」。

§locale: Option<String>

locale / plural 回退摘要;宿主未注入时为「未量到」。

§persistence: Option<String>

AppServices schema / owner / recovery 摘要;宿主未注入时为「未量到」。

§a11y_digest: String§focus: Option<String>

当前焦点元素的稳定语义标签(不含裸 ElementId);无焦点为 None。

§semantics_bumps: u32

本帧语义树 revision 是否推进;用于「Active 期间 0 bump」门禁。

Trait Implementations§

Source§

impl Clone for TraceSemantics

Source§

fn clone(&self) -> Self

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 TraceSemantics

Source§

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

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

impl Default for TraceSemantics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TraceSemantics

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 Eq for TraceSemantics

Source§

impl PartialEq for TraceSemantics

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TraceSemantics

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
Source§

impl StructuralPartialEq for TraceSemantics

Auto Trait Implementations§

§

impl Forget for TraceSemantics

§

impl Freeze for TraceSemantics
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for TraceSemantics

§

impl RefUnwindSafe for TraceSemantics

§

impl Send for TraceSemantics
where RawVecInner: Send,

§

impl Sync for TraceSemantics
where RawVecInner: Sync,

§

impl Unpin for TraceSemantics
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for TraceSemantics

§

impl UnwindSafe for TraceSemantics
where RawVecInner: UnwindSafe,

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> Brush for T
where T: Clone + PartialEq + Default + Debug,

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,