pub struct TrackComputedStyleUpdatesForNode {
pub method: TrackComputedStyleUpdatesForNodeMethod,
pub params: TrackComputedStyleUpdatesForNodeParams,
}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.
trackComputedStyleUpdatesForNode
Fields§
§method: TrackComputedStyleUpdatesForNodeMethod§params: TrackComputedStyleUpdatesForNodeParamsImplementations§
Source§impl TrackComputedStyleUpdatesForNode
impl TrackComputedStyleUpdatesForNode
pub fn builder() -> TrackComputedStyleUpdatesForNodeBuilder
Source§impl TrackComputedStyleUpdatesForNode
impl TrackComputedStyleUpdatesForNode
pub const IDENTIFIER: &'static str = "CSS.trackComputedStyleUpdatesForNode"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for TrackComputedStyleUpdatesForNode
impl Clone for TrackComputedStyleUpdatesForNode
Source§fn clone(&self) -> TrackComputedStyleUpdatesForNode
fn clone(&self) -> TrackComputedStyleUpdatesForNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandResult for TrackComputedStyleUpdatesForNode
impl CommandResult for TrackComputedStyleUpdatesForNode
type Result = TrackComputedStyleUpdatesForNodeResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for TrackComputedStyleUpdatesForNode
impl<'de> Deserialize<'de> for TrackComputedStyleUpdatesForNode
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
Source§impl From<TrackComputedStyleUpdatesForNode> for BrowserProtocolCommands
impl From<TrackComputedStyleUpdatesForNode> for BrowserProtocolCommands
Source§fn from(v: TrackComputedStyleUpdatesForNode) -> Self
fn from(v: TrackComputedStyleUpdatesForNode) -> Self
Converts to this type from the input type.
Source§impl From<TrackComputedStyleUpdatesForNode> for Command
impl From<TrackComputedStyleUpdatesForNode> for Command
Source§fn from(v: TrackComputedStyleUpdatesForNode) -> Self
fn from(v: TrackComputedStyleUpdatesForNode) -> Self
Converts to this type from the input type.
Source§impl From<TrackComputedStyleUpdatesForNode> for CssCommands
impl From<TrackComputedStyleUpdatesForNode> for CssCommands
Source§fn from(v: TrackComputedStyleUpdatesForNode) -> Self
fn from(v: TrackComputedStyleUpdatesForNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrackComputedStyleUpdatesForNode
impl PartialEq for TrackComputedStyleUpdatesForNode
Source§fn eq(&self, other: &TrackComputedStyleUpdatesForNode) -> bool
fn eq(&self, other: &TrackComputedStyleUpdatesForNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<BrowserProtocolCommands> for TrackComputedStyleUpdatesForNode
impl TryFrom<BrowserProtocolCommands> for TrackComputedStyleUpdatesForNode
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <TrackComputedStyleUpdatesForNode as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <TrackComputedStyleUpdatesForNode as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<CssCommands> for TrackComputedStyleUpdatesForNode
impl TryFrom<CssCommands> for TrackComputedStyleUpdatesForNode
Source§type Error = CssCommands
type Error = CssCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: CssCommands,
) -> Result<Self, <TrackComputedStyleUpdatesForNode as TryFrom<CssCommands>>::Error>
fn try_from( e: CssCommands, ) -> Result<Self, <TrackComputedStyleUpdatesForNode as TryFrom<CssCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for TrackComputedStyleUpdatesForNode
Auto Trait Implementations§
impl Freeze for TrackComputedStyleUpdatesForNode
impl RefUnwindSafe for TrackComputedStyleUpdatesForNode
impl Send for TrackComputedStyleUpdatesForNode
impl Sync for TrackComputedStyleUpdatesForNode
impl Unpin for TrackComputedStyleUpdatesForNode
impl UnsafeUnpin for TrackComputedStyleUpdatesForNode
impl UnwindSafe for TrackComputedStyleUpdatesForNode
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