Crate hyperlocal_with_windows

Source
Expand description

hyperlocal-with-windows provides Hyper bindings for Unix domain sockets.

See the examples for how to configure a client or a server.

§Features

  • Client- enables the client extension trait and connector. Enabled by default.

  • Server- enables the server extension trait. Enabled by default.

Structs§

CommonUnixListener
A cross-platform wrapper around a tokio::net::UnixListener or a Windows equivalent. Using this type allows code using Unix sockets to be written once and run on both Unix and Windows.
UnixConnector
the [UnixConnector] can be used to construct a [hyper::Client] which can speak to a unix domain socket.
UnixStream
Wrapper around tokio::net::UnixStream.
Uri
A convenience type that can be used to construct Unix Domain Socket URIs

Traits§

UnixClientExt
Extension trait for constructing a hyper HTTP client over a Unix domain socket.
UnixListenerExt
Extension trait for provisioning a hyper HTTP server over a Unix domain socket.

Functions§

remove_unix_socket_if_present
Helper function to delete a Unix socket if it exists. This function correctly handles Unix sockets on Windows which need to be handled specially.