Function iroh_docs::net::handle_connection

source ·
pub async fn handle_connection<F, Fut>(
    sync: SyncHandle,
    connecting: Connecting,
    accept_cb: F
) -> Result<SyncFinished, AcceptError>
where F: Fn(NamespaceId, PublicKey) -> Fut, Fut: Future<Output = AcceptOutcome>,
Available on crate feature net only.
Expand description

Handle an iroh-docs connection and sync all shared documents in the replica store.