Skip to main content

join_with_device_pairing

Function join_with_device_pairing 

Source
pub async fn join_with_device_pairing(
    pairing: &PreparedDevicePairing,
    layout: StoreLayout,
    synced_tables: Vec<SyncedTable>,
    migrations: Vec<Migration>,
    coven_migration_policy: CovenMigrationPolicy,
    exact_upload_verification: ExactUploadVerification,
    transfer_limits: TransferLimits,
    key_custody: KeyCustody,
    identity_custody: IdentityCustody,
    oauth_clients: OAuthClients,
    oauth_tokens: Option<OAuthTokens>,
    cloudkit_ops: Option<Arc<dyn CloudKitOps>>,
    clock: Arc<dyn Clock>,
    on_progress: Arc<dyn Fn(JoiningDeviceJoinProgress) + Sync + Send>,
    cancel: &Receiver<bool>,
) -> Result<DeviceJoinTransportOutcome, BootstrapError>
Expand description

Complete the joining side after scanning the existing device’s one pairing code. The local session returns the invitation sealed to this attempt; the existing Store transport then performs registration and bootstrap. The caller’s Coven migration policy controls every writer open during bootstrap.