Skip to main content

receive_device_invitation

Function receive_device_invitation 

Source
pub async fn receive_device_invitation(
    offer: &DevicePairingOffer,
    request: &SealedDevicePairingRequest,
    timing: DeviceJoinTransportTiming,
    clock: ClockRef,
    cancel: &Receiver<bool>,
) -> Result<Vec<u8>, DevicePairingTransportError>
Expand description

Submit the same signed request until the owner approves, cancels, or the caller’s deadline expires. Each retry may use another endpoint from the QR; the host accepts the exact request idempotently and refuses a competing one.