Module stats

Module stats 

Source
Expand description

Pool statistics for monitoring and health checks.

This module provides PoolStats, a snapshot of the browser pool’s current state. Use it for monitoring, logging, and health checks.

§Example

use html2pdf_api::BrowserPool;

let pool = BrowserPool::builder()
    .factory(Box::new(ChromeBrowserFactory::with_defaults()))
    .build()?;

let stats = pool.stats();
println!("Available: {}, Active: {}", stats.available, stats.active);

Structs§

PoolStats
Snapshot of pool statistics at a point in time.