pub(crate) async fn serve<S>(service: S, address: Option<&Path>) -> Result<()>where
S: Service<Stream>,Expand description
Serve service either on a systemd-activated connected socket or by
binding a fresh Unix socket at address.
Socket activation takes precedence: if the process was started with a
connected activation socket, address is ignored. Otherwise address
must be Some, or this returns an error.