pub struct TrackComputedStyleUpdatesParams<'a> { /* private fields */ }Expand description
Starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.
Implementations§
Source§impl<'a> TrackComputedStyleUpdatesParams<'a>
impl<'a> TrackComputedStyleUpdatesParams<'a>
pub fn builder( propertiesToTrack: Vec<CSSComputedStyleProperty<'a>>, ) -> TrackComputedStyleUpdatesParamsBuilder<'a>
pub fn propertiesToTrack(&self) -> &[CSSComputedStyleProperty<'a>]
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for TrackComputedStyleUpdatesParams<'a>
impl<'a> CdpCommand<'a> for TrackComputedStyleUpdatesParams<'a>
Source§impl<'a> Clone for TrackComputedStyleUpdatesParams<'a>
impl<'a> Clone for TrackComputedStyleUpdatesParams<'a>
Source§fn clone(&self) -> TrackComputedStyleUpdatesParams<'a>
fn clone(&self) -> TrackComputedStyleUpdatesParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TrackComputedStyleUpdatesParams<'a>
impl<'a> Debug for TrackComputedStyleUpdatesParams<'a>
Source§impl<'a> Default for TrackComputedStyleUpdatesParams<'a>
impl<'a> Default for TrackComputedStyleUpdatesParams<'a>
Source§fn default() -> TrackComputedStyleUpdatesParams<'a>
fn default() -> TrackComputedStyleUpdatesParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for TrackComputedStyleUpdatesParams<'a>
impl<'de, 'a> Deserialize<'de> for TrackComputedStyleUpdatesParams<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for TrackComputedStyleUpdatesParams<'a>
impl<'a> RefUnwindSafe for TrackComputedStyleUpdatesParams<'a>
impl<'a> Send for TrackComputedStyleUpdatesParams<'a>
impl<'a> Sync for TrackComputedStyleUpdatesParams<'a>
impl<'a> Unpin for TrackComputedStyleUpdatesParams<'a>
impl<'a> UnsafeUnpin for TrackComputedStyleUpdatesParams<'a>
impl<'a> UnwindSafe for TrackComputedStyleUpdatesParams<'a>
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