Skip to main content

default_unix_connect

Function default_unix_connect 

pub async fn default_unix_connect(
    path: impl Into<PathBuf>,
) -> Result<(UnixStream, UnixSocketInfo), Box<dyn Error + Send + Sync>>
Available on target_family=unix and crate feature net only.
Expand description

Establish a UnixStream connection to a Unix domain socket at path, returning the stream together with UnixSocketInfo describing the local + peer addresses.

Mirrors rama_tcp::client::default_tcp_connect in shape so the two transports compose interchangeably in higher-level connectors. Use UnixConnector if you need pluggable middleware (timeouts, retries, pools); this helper is the bare path for the common case.