pub trait UnixClientExt {
// Provided method
fn unix() -> Client<UnixConnector, Body> { ... }
}
Expand description
Extention trait for constructing a hyper HTTP client over a Unix domain socket.
Provided Methods§
Sourcefn unix() -> Client<UnixConnector, Body>
fn unix() -> Client<UnixConnector, Body>
Construct a client which speaks HTTP over a Unix domain socket
§Example
use hyper::Client;
use hyperlocal::UnixClientExt;
let client = Client::unix();
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.