iroh_docs::net

Function handle_connection

Source
pub async fn handle_connection<F, Fut>(
    sync: SyncHandle,
    connection: Connection,
    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.