pub async fn bind<P: AsRef<Path>>(path: P) -> Result<UnixListener>Expand description
Bind a Unix domain socket listener.
Returns the listener ready to accept connections.
ยงExamples
use monocoque_core::ipc;
#[compio::main]
async fn main() -> std::io::Result<()> {
let listener = ipc::bind("/tmp/socket.sock").await?;
Ok(())
}