serve

Function serve 

Source
pub fn serve<A: ToSocketAddrs>(addr: A, cfg: WeightPeerConfig) -> Result<()>
Expand description

2026-09-25: Stage cfg.staged_dirs, then accept connections on addr, one thread each, until the listener ends. A directory that fails to stage is logged and skipped.

ยงErrors

Binding addr fails.