Skip to main content

is_stale_socket_path

Function is_stale_socket_path 

Source
pub async fn is_stale_socket_path(socket_path: impl AsRef<Path>) -> Result<bool>
Expand description

Returns whether socket_path points at a stale Unix socket rendezvous path.

On Unix this checks the file type. On Windows, uds_windows represents the rendezvous as a regular path, so existence is the only useful stale-path signal available.