pub struct SignalEventView {
pub timestamp_ms: u64,
pub signal_id: SignalId,
pub peeked: bool,
pub subscriber_elements: Vec<Option<ElementId>>,
}Expand description
DT-02:一次 Signal 触发事件的 ElementId 映射快照。
subscriber_elements 里 Some = element subscriber(映射到 ElementId),
None = Memo/Effect subscriber(不在本 ElementTree 里)。
Fields§
§timestamp_ms: u64§signal_id: SignalId§peeked: bool§subscriber_elements: Vec<Option<ElementId>>Trait Implementations§
Source§impl Clone for SignalEventView
impl Clone for SignalEventView
Auto Trait Implementations§
impl Forget for SignalEventView
impl Freeze for SignalEventView
impl Move for SignalEventView
impl RefUnwindSafe for SignalEventView
impl Send for SignalEventView
impl Sync for SignalEventView
impl Unpin for SignalEventView
impl UnsafeUnpin for SignalEventView
impl UnwindSafe for SignalEventView
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