pub struct BrowserConfig {
pub instance: Option<String>,
pub headless: bool,
pub executable: String,
pub cdp_url: String,
pub user_data_dir: String,
pub window_width: u32,
pub window_height: u32,
pub connect_timeout_ms: u64,
pub command_timeout_ms: u64,
pub args: Vec<String>,
pub allow_agents: Vec<String>,
}Fields§
§instance: Option<String>Instance label. None ⇒ legacy single-instance behaviour
(resolved to "default" at boot time).
headless: bool§executable: String§cdp_url: StringEmpty = launch new Chrome. Set to e.g. “http://127.0.0.1:9222” to attach.
user_data_dir: StringEmpty ⇒ daemon resolves to ${state_dir}/instances/<resolved_label>/
at boot time. An explicit non-empty value overrides the auto-resolved
path so operators can pin a profile to a shared filesystem location.
window_width: u32§window_height: u32§connect_timeout_ms: u64§command_timeout_ms: u64§args: Vec<String>Extra CLI flags forwarded verbatim to the spawned Chrome/Chromium process.
allow_agents: Vec<String>Agents permitted to route browser tools to this instance. Empty = accept any agent (back-compat with 0.2.x).
Trait Implementations§
Source§impl Clone for BrowserConfig
impl Clone for BrowserConfig
Source§impl Debug for BrowserConfig
impl Debug for BrowserConfig
Source§impl<'de> Deserialize<'de> for BrowserConfig
impl<'de> Deserialize<'de> for BrowserConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for BrowserConfig
impl Freeze for BrowserConfig
impl Move for BrowserConfig
impl RefUnwindSafe for BrowserConfig
impl Send for BrowserConfig
impl Sync for BrowserConfig
impl Unpin for BrowserConfig
impl UnsafeUnpin for BrowserConfig
impl UnwindSafe for BrowserConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more