[][src]Struct hyper_socket::UnixSocketConnector

pub struct UnixSocketConnector(_);

A connector to a local Unix Domain Socket which uses HTTP as the application-layer protocol.

use hyper::{Body, Client};
use hyper_socket::UnixSocketConnector;

let connector: UnixSocketConnector = UnixSocketConnector::new("/run/consul.sock");
let client: Client<_, Body> = Client::builder().build(connector);

For more information, please refer to the module documentation.

Methods

impl UnixSocketConnector[src]

pub fn new<P: AsRef<Path>>(path: P) -> Self[src]

pub fn connect(&self) -> impl Future<Output = Result<UnixSocketConnection>>[src]

pub fn client<P: AsRef<Path>>(path: P) -> Client<Self>[src]

Trait Implementations

impl Clone for UnixSocketConnector[src]

impl Debug for UnixSocketConnector[src]

impl Service<Uri> for UnixSocketConnector[src]

type Response = UnixSocketConnection

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<UnixSocketConnection>> + Send>>

The future response value.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.