pub struct BindOptions {
pub workspace_dir: Option<String>,
pub metadata: Option<Value>,
pub host: Option<String>,
pub port: Option<u16>,
}Expand description
Options for Browser::bind().
See: https://playwright.dev/docs/api/class-browser#browser-bind
Fields§
§workspace_dir: Option<String>Working directory for the server, used by CLI tooling and MCP clients.
metadata: Option<Value>Arbitrary JSON metadata the server attaches to the bound session.
host: Option<String>Host to listen on (e.g. "127.0.0.1"). When unset and port is also
unset, the server listens on a local pipe rather than a TCP port.
port: Option<u16>Port to listen on. Pass 0 to request an OS-assigned port.
Trait Implementations§
Source§impl Clone for BindOptions
impl Clone for BindOptions
Source§fn clone(&self) -> BindOptions
fn clone(&self) -> BindOptions
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 BindOptions
impl Debug for BindOptions
Source§impl Default for BindOptions
impl Default for BindOptions
Source§fn default() -> BindOptions
fn default() -> BindOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BindOptions
impl RefUnwindSafe for BindOptions
impl Send for BindOptions
impl Sync for BindOptions
impl Unpin for BindOptions
impl UnsafeUnpin for BindOptions
impl UnwindSafe for BindOptions
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