pub fn cancel_outcome(
sent: bool,
support: CancelSupport,
confirmed_charge: Option<Charge>,
) -> CancelOutcomeExpand description
Decide the acknowledgement of a cancelled attempt.
sent == false(no request byte can ever leave; seecrate::wire::SentTracker::try_abort):stopped,observed{0}.- sent,
support == confirmedand the remote side confirmed the stop withconfirmed_chargewithin the budget:stoppedwith that charge. - otherwise:
unconfirmed, chargeunknown, possibly continuing.