Skip to main content

serve

Function serve 

Source
pub async fn serve(
    opts: ServeOptions,
    controller: Arc<RuntimeApiController>,
) -> Result<()>
Expand description

Bind a Unix domain socket and serve the API on it until the future is dropped.

ยงErrors

Returns an error if the socket file cannot be unlinked, the bind fails, or the underlying axum service errors.