pub fn allocate_devtools_message_id() -> Result<i32, DevToolsMessageIdExhausted>Expand description
Allocates one native DevTools request ID for a caller of this crate.
Observers see the whole browser, so every BrowserHost message a caller sends must use this allocator to avoid consuming another caller’s result. The runtime allocates its own requests from a reserved range this function never returns, so a caller cannot answer an internal request by picking its number.
IDs are positive and never reused, including after cancellation or browser teardown. Numeric correlation does not authorize a browser or document.