pub struct Focus {
pub method: FocusMethod,
pub params: FocusParams,
}Expand description
Focuses the given element. focus
Fields§
§method: FocusMethod§params: FocusParamsImplementations§
Source§impl Focus
impl Focus
pub const IDENTIFIER: &'static str = "DOM.focus"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for Focus
impl CommandResult for Focus
type Result = FocusResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for Focus
impl<'de> Deserialize<'de> for Focus
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<Focus> for BrowserProtocolCommands
impl From<Focus> for BrowserProtocolCommands
Source§impl From<Focus> for DomCommands
impl From<Focus> for DomCommands
Source§impl TryFrom<BrowserProtocolCommands> for Focus
impl TryFrom<BrowserProtocolCommands> for Focus
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, <Focus as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <Focus as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<DomCommands> for Focus
impl TryFrom<DomCommands> for Focus
Source§type Error = DomCommands
type Error = DomCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: DomCommands,
) -> Result<Self, <Focus as TryFrom<DomCommands>>::Error>
fn try_from( e: DomCommands, ) -> Result<Self, <Focus as TryFrom<DomCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for Focus
Auto Trait Implementations§
impl Freeze for Focus
impl RefUnwindSafe for Focus
impl Send for Focus
impl Sync for Focus
impl Unpin for Focus
impl UnsafeUnpin for Focus
impl UnwindSafe for Focus
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