pub struct UnixConnector;
Expand description
the [UnixConnector]
can be used to construct a [hyper::Client]
which can
speak to a unix domain socket.
§Example
use http_body_util::Full;
use hyper::body::Bytes;
use hyper_util::{client::legacy::Client, rt::TokioExecutor};
use hyperlocal_with_windows::UnixConnector;
let connector = UnixConnector;
let client: Client<UnixConnector, Full<Bytes>> =
Client::builder(TokioExecutor::new()).build(connector);
§Note
If you don’t need access to the low-level [hyper::Client]
builder
interface, consider using the [UnixClientExt]
trait instead.
Trait Implementations§
Source§impl Clone for UnixConnector
impl Clone for UnixConnector
Source§fn clone(&self) -> UnixConnector
fn clone(&self) -> UnixConnector
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 UnixConnector
impl Debug for UnixConnector
Source§impl Default for UnixConnector
impl Default for UnixConnector
Source§fn default() -> UnixConnector
fn default() -> UnixConnector
Returns the “default value” for a type. Read more
Source§impl Service<Uri> for UnixConnector
impl Service<Uri> for UnixConnector
Source§type Response = UnixStream
type Response = UnixStream
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<UnixConnector as Service<Uri>>::Response, <UnixConnector as Service<Uri>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<UnixConnector as Service<Uri>>::Response, <UnixConnector as Service<Uri>>::Error>> + Send>>
The future response value.
impl Copy for UnixConnector
impl Unpin for UnixConnector
Auto Trait Implementations§
impl Freeze for UnixConnector
impl RefUnwindSafe for UnixConnector
impl Send for UnixConnector
impl Sync for UnixConnector
impl UnwindSafe for UnixConnector
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