pub enum BrowserControlCommand {
Show 26 variants
Navigate {
surface_id: SurfaceId,
url: String,
},
Back {
surface_id: SurfaceId,
},
Forward {
surface_id: SurfaceId,
},
Reload {
surface_id: SurfaceId,
},
FocusWebview {
surface_id: SurfaceId,
},
IsWebviewFocused {
surface_id: SurfaceId,
},
Snapshot {
surface_id: SurfaceId,
},
Eval {
surface_id: SurfaceId,
script: String,
},
Wait {
surface_id: SurfaceId,
condition: BrowserWaitCondition,
timeout_ms: u64,
poll_interval_ms: u64,
},
Click {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Dblclick {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Type {
surface_id: SurfaceId,
target: BrowserTarget,
text: String,
snapshot_after: bool,
},
Fill {
surface_id: SurfaceId,
target: BrowserTarget,
text: String,
snapshot_after: bool,
},
Press {
surface_id: SurfaceId,
target: Option<BrowserTarget>,
key: String,
snapshot_after: bool,
},
Keydown {
surface_id: SurfaceId,
target: Option<BrowserTarget>,
key: String,
snapshot_after: bool,
},
Keyup {
surface_id: SurfaceId,
target: Option<BrowserTarget>,
key: String,
snapshot_after: bool,
},
Hover {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Focus {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Check {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Uncheck {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Select {
surface_id: SurfaceId,
target: BrowserTarget,
values: Vec<String>,
snapshot_after: bool,
},
Scroll {
surface_id: SurfaceId,
target: Option<BrowserTarget>,
dx: i32,
dy: i32,
snapshot_after: bool,
},
ScrollIntoView {
surface_id: SurfaceId,
target: BrowserTarget,
snapshot_after: bool,
},
Get {
surface_id: SurfaceId,
query: BrowserGetCommand,
},
Is {
surface_id: SurfaceId,
query: BrowserPredicateCommand,
},
Screenshot {
surface_id: SurfaceId,
path: Option<String>,
full_document: bool,
},
}Variants§
Back
Forward
Reload
FocusWebview
IsWebviewFocused
Snapshot
Eval
Wait
Click
Dblclick
Type
Fill
Press
Keydown
Keyup
Hover
Focus
Check
Uncheck
Select
Scroll
ScrollIntoView
Get
Is
Screenshot
Trait Implementations§
Source§impl Clone for BrowserControlCommand
impl Clone for BrowserControlCommand
Source§fn clone(&self) -> BrowserControlCommand
fn clone(&self) -> BrowserControlCommand
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 BrowserControlCommand
impl Debug for BrowserControlCommand
Source§impl<'de> Deserialize<'de> for BrowserControlCommand
impl<'de> Deserialize<'de> for BrowserControlCommand
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 PartialEq for BrowserControlCommand
impl PartialEq for BrowserControlCommand
Source§impl Serialize for BrowserControlCommand
impl Serialize for BrowserControlCommand
impl Eq for BrowserControlCommand
impl StructuralPartialEq for BrowserControlCommand
Auto Trait Implementations§
impl Freeze for BrowserControlCommand
impl RefUnwindSafe for BrowserControlCommand
impl Send for BrowserControlCommand
impl Sync for BrowserControlCommand
impl Unpin for BrowserControlCommand
impl UnsafeUnpin for BrowserControlCommand
impl UnwindSafe for BrowserControlCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.