Struct hyperlocal::client::UnixConnector [−][src]
pub struct UnixConnector;
A type which implements hyper's client connector interface for unix domain sockets
UnixConnector
instances expects uri's
to be constructued with hyperlocal::Uri::new()
which produce uris with a unix://
scheme
examples
extern crate hyper; extern crate hyperlocal; let client = hyper::Client::builder() .build::<_, hyper::Body>(hyperlocal::UnixConnector::new());
Methods
impl UnixConnector
[src]
impl UnixConnector
Trait Implementations
impl Clone for UnixConnector
[src]
impl Clone for UnixConnector
fn clone(&self) -> UnixConnector
[src]
fn clone(&self) -> UnixConnector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Connect for UnixConnector
[src]
impl Connect for UnixConnector
type Transport = UnixStream
The connected IO Stream.
type Error = Error
An error occured when trying to connect.
type Future = ConnectFuture
A Future that will resolve to the connected Transport.
fn connect(&self, destination: Destination) -> Self::Future
[src]
fn connect(&self, destination: Destination) -> Self::Future
Connect to a destination.
Auto Trait Implementations
impl Send for UnixConnector
impl Send for UnixConnector
impl Sync for UnixConnector
impl Sync for UnixConnector