Function iroh_docs::net::connect_and_sync

source ·
pub async fn connect_and_sync(
    endpoint: &Endpoint,
    sync: &SyncHandle,
    namespace: NamespaceId,
    peer: NodeAddr
) -> Result<SyncFinished, ConnectError>
Available on crate feature net only.
Expand description

Connect to a peer and sync a replica