[−][src]Struct hyper_unix_connector::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.
fn poll_ready(&mut self, _cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, uri: Uri) -> Self::Future
[src]
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.
fn connect(&self, dst: Destination) -> Self::Future
[src]
Auto Trait Implementations
impl Send for UnixClient
impl Sync for UnixClient
impl Unpin for UnixClient
impl UnwindSafe for UnixClient
impl RefUnwindSafe for UnixClient
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<C, Target> MakeConnection<Target> for C where
C: Service<Target>,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
[src]
C: Service<Target>,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
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
fn poll_ready(
&mut self,
cx: &mut Context
) -> Poll<Result<(), <C as MakeConnection<Target>>::Error>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Result<(), <C as MakeConnection<Target>>::Error>>
fn make_connection(
&mut self,
target: Target
) -> <C as MakeConnection<Target>>::Future
[src]
&mut self,
target: Target
) -> <C as MakeConnection<Target>>::Future