Skip to main content

serve

Function serve 

Source
pub async fn serve(
    entry: &'static MachineEntry,
    cfg: &Config,
    labels: &Translations,
    listener: TcpListener,
    pki_dir: &Path,
    cycle: Duration,
) -> Result<Link, LinkError>
Expand description

Starts the server on listener and the simulation behind it, in real time, in ticks of cycle. labels names the variables for people browsing the server; pki_dir holds the server’s keys. Anonymous clients, and only client certificates already trusted: Security::default().