set_unix_socket_write_only

Function set_unix_socket_write_only 

Source
pub async fn set_unix_socket_write_only<P: AsRef<Path>>(path: P) -> Result<()>
Expand description

Sets the UNIX socket at the given path to be write-only by non-owners.

This ensures that normal clients can write to the socket but not read from it.

ยงErrors

If the underlying system call fails, an error is returned.