Skip to main content

serve_socket

Function serve_socket 

Source
pub async fn serve_socket(workspace: &Arc<Workspace>) -> Result<SocketServing>
Expand description

Serve the socket on the address [server] names, registering the serve task with the workspace’s supervisor and returning whether one is serving.

A bind that fails never fails the boot here: this is not on the boot path, and the failure is logged plus reported as SocketServing::BindFailed so the caller’s boot cannot die of it.