Skip to main content

accept_hand_off_from

Function accept_hand_off_from 

Source
pub fn accept_hand_off_from(
    bytes: &[u8],
    peer: Uuid,
    trust: &PinnedTrust,
    versions: &dyn DirectoryVersions,
    delegate_device: Uuid,
    max_protocol: &str,
    inbox: &dyn DelegateInbox,
) -> Result<(VerifiedHandOff, HandOffAck), DelegationError>
Expand description

accept_hand_off for a hand-off pulled over a peering channel from peer, the device the channel’s handshake verified: the hand-off must also have been sealed by that peer, so a peer can hand over only its own uploads.

§Errors

Whatever accept_hand_off refuses, or DelegationError::WrongOrigin — checked before anything is persisted.