Struct hyperlocal_with_windows::UnixConnector
source · 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 hyper::{Client, Body};
use hyperlocal_with_windows::UnixConnector;
let connector = UnixConnector;
let client: Client<UnixConnector, Body> = Client::builder().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
§type Future = Pin<Box<dyn Future<Output = Result<<UnixConnector as Service<Uri>>::Response, <UnixConnector as Service<Uri>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<UnixConnector as Service<Uri>>::Response, <UnixConnector as Service<Uri>>::Error>> + Send + 'static, Global>>
The future response value.