[][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 Service<Uri> for UnixClient[src]

type Response = UnixStream

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.

impl Connect for UnixClient[src]

type Transport = UnixStream

The connected IO Stream.

type Error = Error

An error occured when trying to connect.

type Future = Pin<Box<dyn Future<Output = Result<(Self::Transport, Connected), Error>> + Send>>

A Future that will resolve to the connected Transport.

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<C, Target> MakeConnection<Target> for C where
    C: Service<Target>,
    <C as Service<Target>>::Response: AsyncRead,
    <C as Service<Target>>::Response: AsyncWrite
[src]

type Connection = <C as Service<Target>>::Response

The transport provided by this service

type Error = <C as Service<Target>>::Error

Errors produced by the connecting service

type Future = <C as Service<Target>>::Future

The future that eventually produces the transport