[][src]Struct hyper_unix_connector::UnixClient

pub struct UnixClient;

Converts Uri to tokio::net::UnixStream.

Useful for making hyper clients connect to Unix-domain addresses. For the server side, see UnixConnector.

Example

use hyper_unix_connector::{Uri, UnixClient};
use hyper::{Body, Client};

let client: Client<UnixClient, Body> = Client::builder().build(UnixClient);
let addr: hyper::Uri = Uri::new("./my_unix_socket", "/").into();
client.get(addr);

Trait Implementations

impl Clone for UnixClient[src]

impl Copy for UnixClient[src]

impl Debug for UnixClient[src]

impl Service<Uri> for UnixClient[src]

type Response = UDS

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>

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> Instrument 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 = Infallible

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.