pub type BrowserPoolState = State<SharedBrowserPool>;Expand description
Type alias for Axum State extractor with the shared pool.
Use this type in your handler parameters:
ⓘ
async fn handler(
BrowserPoolState(pool): BrowserPoolState,
) -> impl IntoResponse {
let browser = pool.get().unwrap();
// ...
}Aliased Type§
pub struct BrowserPoolState(pub Arc<BrowserPool>);Tuple Fields§
§0: Arc<BrowserPool>