Skip to main content

bind_local

Function bind_local 

Source
pub async fn bind_local(path: &Path) -> Result<LocalListener>
Expand description

Bind a tokio listener at path.

Callers still remove a stale path first. Unix mode(0o600) is set on the bind options (fchmod before bind, no umask TOCTOU). Windows writes the marker, then binds the derived pipe with an owner-only SDDL; a live listener holding that NPFS name makes the second bind fail, which is the EADDRINUSE equivalent (try_overwrite is a no-op on Windows).