pub struct PoolMeta {
pub max_tabs: usize,
pub submitted: usize,
pub queued: usize,
pub max_waited_ms: u64,
pub note: Option<String>,
}Expand description
Batch-level concurrency summary so an agent driving fetch_many can see
whether it oversubscribed the pool and adjust — without a separate
pool_status round-trip.
Fields§
§max_tabs: usizeServer concurrency ceiling: browsers × tabs_per_browser.
submitted: usizeRequests submitted in this batch.
queued: usizeHow many of them had to queue for a tab (waited measurably for a
permit). 0 means everything ran fully in parallel.
max_waited_ms: u64Worst per-request queue wait observed in the batch, milliseconds.
note: Option<String>Present only when the batch oversubscribed the pool — a plain-language
hint the agent can act on (cap the next batch at max_tabs, or raise
the pool size).
Trait Implementations§
Source§impl JsonSchema for PoolMeta
impl JsonSchema for PoolMeta
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PoolMeta
impl RefUnwindSafe for PoolMeta
impl Send for PoolMeta
impl Sync for PoolMeta
impl Unpin for PoolMeta
impl UnsafeUnpin for PoolMeta
impl UnwindSafe for PoolMeta
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