pub fn dispose_failure(
inbox: &dyn DelegateInbox,
address: &str,
asset_id: Uuid,
kind: &str,
error: &DelegationError,
) -> Result<HeldFailure, DelegationError>Expand description
Decide the fate of the hand-off of asset_id held under address after error: a
permanent refusal quarantines the delegate’s copy under a Quarantine note naming kind,
so it neither fails every later run nor is lost; a transient one keeps it held.
The copy is never deleted here. A revoked origin is often a lost device whose original is
gone, and a refused bundle may be the account’s only copy of the asset; only the user deletes
a quarantined copy (DelegateInbox::discard).
§Errors
DelegationError::Inbox when a permanently refused copy could not be quarantined; it then
stays held and is tried again.