pub enum BrowsingContextCommand {
Show 17 variants
Navigate {
url: String,
},
Reload,
GoBack,
GoForward,
GetTitle,
GetUrl,
NewTab,
CloseTab,
FocusTab,
FocusWindow,
SwitchToFrame {
element_id: ElementId,
},
SwitchToFrameByIndex {
index: usize,
},
SwitchToFrameByUrl {
url_pattern: String,
},
SwitchToParentFrame,
GetFrameCount,
GetAllFrames,
CaptureScreenshot {
format: String,
quality: Option<u8>,
},
}Expand description
BrowsingContext module commands for navigation and tab management.
Variants§
Navigate to URL.
Reload
Reload current page.
GoBack
Navigate back in history.
GoForward
Navigate forward in history.
GetTitle
Get page title.
GetUrl
Get current URL.
NewTab
Create new tab.
CloseTab
Close current tab.
FocusTab
Focus tab (make active).
FocusWindow
Focus window (bring to front).
SwitchToFrame
Switch to frame by element reference.
SwitchToFrameByIndex
Switch to frame by index.
SwitchToFrameByUrl
Switch to frame by URL pattern.
SwitchToParentFrame
Switch to parent frame.
GetFrameCount
Get child frame count.
GetAllFrames
Get all frames info.
CaptureScreenshot
Capture screenshot of visible tab.
Trait Implementations§
Source§impl Clone for BrowsingContextCommand
impl Clone for BrowsingContextCommand
Source§fn clone(&self) -> BrowsingContextCommand
fn clone(&self) -> BrowsingContextCommand
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 Debug for BrowsingContextCommand
impl Debug for BrowsingContextCommand
Source§impl<'de> Deserialize<'de> for BrowsingContextCommand
impl<'de> Deserialize<'de> for BrowsingContextCommand
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 BrowsingContextCommand
impl RefUnwindSafe for BrowsingContextCommand
impl Send for BrowsingContextCommand
impl Sync for BrowsingContextCommand
impl Unpin for BrowsingContextCommand
impl UnwindSafe for BrowsingContextCommand
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