pub fn create_pool_data(pool: SharedBrowserPool) -> SharedBrowserPoolExpand description
Create Rocket managed state from an existing shared pool.
Use this when you already have a SharedBrowserPool and want to
use it with Rocket’s manage().
§Parameters
pool- The shared browser pool.
§Returns
SharedBrowserPool ready for use with rocket.manage().
§Example
ⓘ
use html2pdf_api::integrations::rocket::create_pool_data;
let shared_pool = pool.into_shared();
let pool_data = create_pool_data(shared_pool);
rocket::build().manage(pool_data)