pub fn next_adapter_id() -> usize
If you use this function, you must ensure that only one adapter at a time has a given ID.