pub struct Browser { /* private fields */ }Expand description
High-level browser facade combining process management, CDP control, and action execution.
Implementations§
Source§impl Browser
impl Browser
pub fn new(config: BrowserConfig) -> Self
pub async fn start(&self) -> Result<()>
pub async fn stop(&self) -> Result<()>
pub async fn is_running(&self) -> bool
pub async fn execute_action(&self, action: &BrowserAction) -> ActionResult
pub fn cdp_port(&self) -> u16
Auto Trait Implementations§
impl !Freeze for Browser
impl !RefUnwindSafe for Browser
impl Send for Browser
impl Sync for Browser
impl Unpin for Browser
impl UnsafeUnpin for Browser
impl !UnwindSafe for Browser
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