pub struct FocusCommand { /* private fields */ }Available on crate features
DOM and Runtime only.Expand description
Focuses the given element.
Implementations§
Source§impl FocusCommand
impl FocusCommand
pub fn new( node_id: Option<NodeId>, backend_node_id: Option<BackendNodeId>, object_id: Option<RemoteObjectId>, ) -> Self
Sourcepub fn backend_node_id(&self) -> Option<&BackendNodeId>
pub fn backend_node_id(&self) -> Option<&BackendNodeId>
Identifier of the backend node.
Sourcepub fn object_id(&self) -> Option<&RemoteObjectId>
pub fn object_id(&self) -> Option<&RemoteObjectId>
JavaScript object id of the node wrapper.
Trait Implementations§
Source§impl Clone for FocusCommand
impl Clone for FocusCommand
Source§fn clone(&self) -> FocusCommand
fn clone(&self) -> FocusCommand
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 FocusCommand
impl Command for FocusCommand
Source§impl Debug for FocusCommand
impl Debug for FocusCommand
Source§impl<'de> Deserialize<'de> for FocusCommand
impl<'de> Deserialize<'de> for FocusCommand
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 FocusCommand
impl RefUnwindSafe for FocusCommand
impl Send for FocusCommand
impl Sync for FocusCommand
impl Unpin for FocusCommand
impl UnwindSafe for FocusCommand
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