Skip to main content

socket_path

Function socket_path 

Source
pub fn socket_path(name: &str) -> PathBuf
Expand description

Build a Unix-socket path under /tmp/ using the product-name stem.

§Examples

use pithy_core::branding::socket_path;
let p = socket_path("shim");
assert_eq!(p.to_string_lossy(), "/tmp/pithy-shim.sock");