pub fn accept_hand_off(
bytes: &[u8],
trust: &PinnedTrust,
versions: &dyn DirectoryVersions,
delegate_device: Uuid,
max_protocol: &str,
inbox: &dyn DelegateInbox,
) -> Result<(VerifiedHandOff, HandOffAck), DelegationError>Expand description
Take a hand-off: verify it (verify_hand_off), persist it durably in inbox, and only
then acknowledge it.
§Errors
Whatever verify_hand_off refused, or DelegationError::Inbox when it could not be
persisted — in which case there is no acknowledgement and the origin keeps the upload.