pub struct Config {
pub host: String,
pub port: u16,
pub viewport_width: i32,
pub viewport_height: i32,
pub screenshots_dir: String,
}Expand description
Connection and viewport settings shared by BrowserAgent
and Cluster.
Fields§
§host: StringChrome’s remote-debugging host, e.g. "localhost".
port: u16Chrome’s remote-debugging port, e.g. 9222.
viewport_width: i32Viewport width in CSS pixels applied on connect.
viewport_height: i32Viewport height in CSS pixels applied on connect.
screenshots_dir: StringDirectory screenshots are written to when a relative path is used.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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