pub struct Browser { /* private fields */ }Expand description
Launches a browser and returns the child process handle.
Implementations§
Source§impl Browser
impl Browser
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Create a browser launcher.
name is one of the named browsers ("safari", "firefox",
"chrome", "chromium", "opera", "curl") or "default" to use
the system default. Checked against BCAT_BROWSER env var at
construction time by the caller.
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