pub struct SetInspectModeCommand { /* private fields */ }Available on crate features
experimental and Overlay and DOM and Page and Runtime only.Expand description
Enters the ‘inspect’ mode. In this mode, elements that user is hovering over are highlighted. Backend then generates ‘inspectNodeRequested’ event upon element selection.
Implementations§
Source§impl SetInspectModeCommand
impl SetInspectModeCommand
pub fn new(mode: InspectMode, highlight_config: Option<HighlightConfig>) -> Self
Sourcepub fn mode(&self) -> &InspectMode
pub fn mode(&self) -> &InspectMode
Set an inspection mode.
Sourcepub fn highlight_config(&self) -> Option<&HighlightConfig>
pub fn highlight_config(&self) -> Option<&HighlightConfig>
A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false.
Trait Implementations§
Source§impl Clone for SetInspectModeCommand
impl Clone for SetInspectModeCommand
Source§fn clone(&self) -> SetInspectModeCommand
fn clone(&self) -> SetInspectModeCommand
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 Command for SetInspectModeCommand
impl Command for SetInspectModeCommand
Source§impl Debug for SetInspectModeCommand
impl Debug for SetInspectModeCommand
Source§impl<'de> Deserialize<'de> for SetInspectModeCommand
impl<'de> Deserialize<'de> for SetInspectModeCommand
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 Freeze for SetInspectModeCommand
impl RefUnwindSafe for SetInspectModeCommand
impl Send for SetInspectModeCommand
impl Sync for SetInspectModeCommand
impl Unpin for SetInspectModeCommand
impl UnwindSafe for SetInspectModeCommand
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