Skip to main content

serve

Function serve 

Source
pub fn serve(
    stream: TcpStream,
    gpp: &Path,
    peer_name: &str,
    opts: SyncOptions,
) -> Result<SyncReport>
Expand description

Handle one inbound sync on an accepted stream (responder role). Trust-on-first-use only; see serve_with_auth to additionally gate on an authorized-keys allowlist.