pub type SharedPool = Arc<Mutex<BrowserPool>>;Expand description
Type alias for shared browser pool.
This is the standard pool type used by the service functions.
It’s an Arc<Mutex<BrowserPool>> which allows safe sharing across
threads and handlers.
§Usage
ⓘ
use html2pdf_api::integrations::actix::SharedPool;
fn my_function(pool: &SharedPool) {
let guard = pool.lock().unwrap();
let browser = guard.get().unwrap();
// ...
}Aliased Type§
pub struct SharedPool { /* private fields */ }