pub struct TrackComputedStyleUpdatesForNodeParams {
pub node_id: Option<NodeId>,
}Expand description
Starts tracking the given node for the computed style updates and whenever
the computed style is updated for node, it queues a computedStyleUpdated
event with throttling. There can only be 1 node tracked for computed style
updates so passing a new node id removes tracking from the previous node.
Pass undefined to disable tracking.
Experimental: may change without notice.
Parameters of CSS.trackComputedStyleUpdatesForNode.
Fields§
§node_id: Option<NodeId>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrackComputedStyleUpdatesForNodeParams
impl<'de> Deserialize<'de> for TrackComputedStyleUpdatesForNodeParams
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 StructuralPartialEq for TrackComputedStyleUpdatesForNodeParams
Auto Trait Implementations§
impl Forget for TrackComputedStyleUpdatesForNodeParams
impl Freeze for TrackComputedStyleUpdatesForNodeParams
impl RefUnwindSafe for TrackComputedStyleUpdatesForNodeParams
impl Send for TrackComputedStyleUpdatesForNodeParams
impl Sync for TrackComputedStyleUpdatesForNodeParams
impl Unpin for TrackComputedStyleUpdatesForNodeParams
impl UnsafeUnpin for TrackComputedStyleUpdatesForNodeParams
impl UnwindSafe for TrackComputedStyleUpdatesForNodeParams
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