Skip to main content

serve

Function serve 

Source
pub fn serve(repo_root: &Path, manifest: Manifest) -> Result<(), ServerError>
Expand description

Serve requests on the canonical socket until a Shutdown request arrives. Blocking: owns a current-thread tokio runtime for its lifetime. The socket file is created on bind and removed before returning.

ยงErrors

Io when the socket cannot be created/bound; Protocol when the runtime cannot be built.