pub struct UnixClient;
Expand description
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§
Source§impl Clone for UnixClient
impl Clone for UnixClient
Source§fn clone(&self) -> UnixClient
fn clone(&self) -> UnixClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnixClient
impl Debug for UnixClient
Source§impl Service<Uri> for UnixClient
impl Service<Uri> for UnixClient
Source§type Future = Pin<Box<dyn Future<Output = Result<<UnixClient as Service<Uri>>::Response, <UnixClient as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<UnixClient as Service<Uri>>::Response, <UnixClient as Service<Uri>>::Error>> + Send>>
The future response value.
impl Copy for UnixClient
Auto Trait Implementations§
impl Freeze for UnixClient
impl RefUnwindSafe for UnixClient
impl Send for UnixClient
impl Sync for UnixClient
impl Unpin for UnixClient
impl UnwindSafe for UnixClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more