Skip to main content

socket_path

Function socket_path 

Source
pub fn socket_path(path: Option<&Path>) -> Result<PathBuf>
Expand description

Resolve an explicit socket path or the per-user default shared by wavegraph and wr. The default is $XDG_RUNTIME_DIR/wavegraph.sock when the runtime directory is absolute, or ~/.wavegraph.sock otherwise.

ยงErrors

Returns an error if neither a runtime directory nor a home directory is available.