Skip to main content

SharedPool

Type Alias SharedPool 

Source
pub type SharedPool = Arc<BrowserPool>;
Expand description

Type alias for shared browser pool.

This is the standard pool type used by the service functions. It’s an Arc<BrowserPool> which allows safe sharing across threads and handlers. No outer Mutex needed — the pool uses fine-grained internal locks.

§Usage

use html2pdf_api::integrations::rocket::SharedPool;

fn my_function(pool: &SharedPool) {
    let browser = pool.get().unwrap();
    // ...
}

Aliased Type§

pub struct SharedPool { /* private fields */ }