rearm

Function rearm 

fn rearm(
    order: &mut BTreeSet<(Instant, PacketId)>,
    deadline: &mut Option<Instant>,
    packet_id: PacketId,
    timeout: Duration,
)
Expand description

Arms (or re-arms) deadline for packet_id, keeping order in sync so the earliest deadline is always its first().