pub struct NoBrowser;Expand description
No-op Browser stub for non-Windows platforms.
Trait Implementations§
Source§impl Browser for NoBrowser
impl Browser for NoBrowser
Source§fn open_tab(&self, _url: Option<&str>) -> Result<String, AutomataError>
fn open_tab(&self, _url: Option<&str>) -> Result<String, AutomataError>
Open a new tab at
url (or about:blank). Returns the CDP tab ID.Source§fn activate_tab(&self, _tab_id: &str) -> Result<(), AutomataError>
fn activate_tab(&self, _tab_id: &str) -> Result<(), AutomataError>
Bring a tab to the foreground (switch to it).
Navigate a tab to a URL.
Source§fn eval(&self, _tab_id: &str, _expr: &str) -> Result<String, AutomataError>
fn eval(&self, _tab_id: &str, _expr: &str) -> Result<String, AutomataError>
Evaluate a JS expression in a tab. Returns the string result.
Auto Trait Implementations§
impl Freeze for NoBrowser
impl RefUnwindSafe for NoBrowser
impl Send for NoBrowser
impl Sync for NoBrowser
impl Unpin for NoBrowser
impl UnsafeUnpin for NoBrowser
impl UnwindSafe for NoBrowser
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