pub struct SignalTraceEntry {
pub signal_id: SignalId,
pub subscribers: Vec<SubscriberId>,
pub peek_subscribers: Vec<SubscriberId>,
pub peeked: bool,
pub unknown_peek: bool,
pub timestamp_ms: u64,
}Expand description
DT-02:一次 Signal.set/update 的追踪条目
Fields§
§signal_id: SignalId§subscribers: Vec<SubscriberId>这次变化直接影响到的 subscriber(get + 有效 peek 依赖,已去重)
peek_subscribers: Vec<SubscriberId>这次变化影响的 peek 依赖 subscriber 子集。
peeked: bool是否被任意 peek() 读过。
unknown_peek: bool是否在 subscriber 上下文之外被 peek(无法定位宿主,退回全局 epoch)。
timestamp_ms: u64自进程启动的毫秒数
Trait Implementations§
Source§impl Clone for SignalTraceEntry
impl Clone for SignalTraceEntry
Auto Trait Implementations§
impl Forget for SignalTraceEntry
impl Freeze for SignalTraceEntry
impl Move for SignalTraceEntry
impl RefUnwindSafe for SignalTraceEntry
impl Send for SignalTraceEntrywhere
RawVecInner: Send,
impl Sync for SignalTraceEntrywhere
RawVecInner: Sync,
impl Unpin for SignalTraceEntry
impl UnsafeUnpin for SignalTraceEntry
impl UnwindSafe for SignalTraceEntrywhere
RawVecInner: UnwindSafe,
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