Struct hyperlocal::client::UnixConnector
[−]
[src]
pub struct UnixConnector(_);
A type which implements hyper's client connector interface for unix domain sockets
UnixConnector
instances assume uri's
constructued with hyperlocal::Uri::new()
which produce uris with a unix://
scheme
examples
extern crate hyper; extern crate hyperlocal; extern crate tokio_core; let core = tokio_core::reactor::Core::new().unwrap(); let client = hyper::Client::configure() .connector( hyperlocal::UnixConnector::new(core.handle()) ) .build(&core.handle());
Methods
impl UnixConnector
[src]
Trait Implementations
impl Service for UnixConnector
[src]
type Request = HyperUri
Requests handled by the service.
type Response = UnixStream
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = FutureResult<UnixStream, Error>
The future response value.
fn call(&self, uri: HyperUri) -> Self::Future
[src]
Process the request and return the response asynchronously.