It would be more idiomatic to put next_id into a Cell instead of transmuting self. That would also let you remove the `#[no_freeze]` attribute. Why does `Port` want to be immutable?