pub struct ChromePoolConfig {
pub size: Option<usize>,
pub recycle_after_navs: u32,
pub idle_timeout_secs: u64,
pub health_check_secs: u64,
pub shutdown_drain_secs: u64,
}Expand description
Per-knob configuration for the bounded browser-context pool. Loaded under
[renderer.chrome_pool]. Inactive unless
chrome_context_pool_enabled = true AND chrome_backend = "vanilla".
Fields§
§size: Option<usize>Pool size. None → max(2, num_cpus / 2). Caps simultaneous
in-flight chrome requests per pool.
Recycle policy: v1 always recreates the context after each release. Reserved for a future “reuse N navigations then recreate” mode.
idle_timeout_secs: u64Idle slots older than this are health-checked on next acquire.
health_check_secs: u64Browser.getVersion probe deadline (idle-slot liveness).
shutdown_drain_secs: u64SIGTERM drain window before phase 3 force-close.
Trait Implementations§
Source§impl Clone for ChromePoolConfig
impl Clone for ChromePoolConfig
Source§fn clone(&self) -> ChromePoolConfig
fn clone(&self) -> ChromePoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChromePoolConfig
impl Debug for ChromePoolConfig
Source§impl Default for ChromePoolConfig
impl Default for ChromePoolConfig
Source§impl<'de> Deserialize<'de> for ChromePoolConfig
impl<'de> Deserialize<'de> for ChromePoolConfig
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 Freeze for ChromePoolConfig
impl RefUnwindSafe for ChromePoolConfig
impl Send for ChromePoolConfig
impl Sync for ChromePoolConfig
impl Unpin for ChromePoolConfig
impl UnsafeUnpin for ChromePoolConfig
impl UnwindSafe for ChromePoolConfig
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