BrowserPoolData

Type Alias BrowserPoolData 

Source
pub type BrowserPoolData = Data<SharedBrowserPool>;
Expand description

Type alias for Actix-web Data wrapper around the shared pool.

Use this type in your handler parameters:

async fn handler(pool: BrowserPoolData) -> impl Responder {
    let pool = pool.lock().unwrap();
    let browser = pool.get()?;
    // ...
}

Aliased Type§

pub struct BrowserPoolData(/* private fields */);