async fn serve(
port: u16,
controller: ControllerService,
identity: Option<Identity>,
) -> Result<(), Box<dyn Error>>Expand description
Serve the controller on [::]:port, optionally with TLS.
§Arguments
port- the port to listen oncontroller- the Orchestrator service instanceidentity- the TLS certificate and private key, orNonewhen using no TLS
§Errors
If the address cannot be parsed, the TLS identity is rejected, or the port cannot be served.