Rust Priority-queue Resources