pub fn effective_deadline(
parent: Option<Instant>,
timeout: Option<Duration>,
) -> Option<Instant>Expand description
Fold a parent deadline and a timeout into the effective deadline: the earlier of the two, where “no parent”/“no timeout” each leave the other side in force. External drivers narrow turn deadlines into attempt deadlines through this fold.