pub fn wait_for_socket(
socket: impl AsRef<Path>,
timeout: Duration,
) -> Result<()>Expand description
Wait until a daemon is reachable at socket, polling at ~50ms.
On Unix this checks for the AF_UNIX socket file; on Windows it
connect-probes the named pipe (pipes don’t appear on the
filesystem). Returns Ok(()) on success, error on timeout.