pub struct TraceSemantics {
pub command: Option<String>,
pub shared_state: 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>§a11y_digest: String§focus: Option<String>当前焦点元素的稳定语义标签(不含裸 ElementId);无焦点为 None。
semantics_bumps: u32本帧语义树 revision 是否推进;用于「Active 期间 0 bump」门禁。
Trait Implementations§
Source§impl Clone for TraceSemantics
impl Clone for TraceSemantics
Source§impl Debug for TraceSemantics
impl Debug for TraceSemantics
Source§impl Default for TraceSemantics
impl Default for TraceSemantics
Source§impl<'de> Deserialize<'de> for TraceSemantics
impl<'de> Deserialize<'de> for TraceSemantics
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
impl Eq for TraceSemantics
Source§impl PartialEq for TraceSemantics
impl PartialEq for TraceSemantics
Source§impl Serialize for TraceSemantics
impl Serialize for TraceSemantics
impl StructuralPartialEq for TraceSemantics
Auto Trait Implementations§
impl Forget for TraceSemantics
impl Freeze for TraceSemantics
impl Move for TraceSemantics
impl RefUnwindSafe for TraceSemantics
impl Send for TraceSemantics
impl Sync for TraceSemantics
impl Unpin for TraceSemantics
impl UnsafeUnpin for TraceSemantics
impl UnwindSafe for TraceSemantics
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.