[−][src]Struct hyper_socket::UnixSocketConnector
A connector to a local Unix Domain Socket which uses HTTP as the application-layer protocol.
use hyper::{Body, Client}; use hyper_socket::UnixSocketConnector; let connector: UnixSocketConnector = UnixSocketConnector::new("/run/consul.sock"); let client: Client<_, Body> = Client::builder().build(connector);
For more information, please refer to the module documentation.
Methods
impl UnixSocketConnector
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Self
[src]
pub fn connect(&self) -> impl Future<Output = Result<UnixSocketConnection>>
[src]
pub fn client<P: AsRef<Path>>(path: P) -> Client<Self>
[src]
Trait Implementations
impl Clone for UnixSocketConnector
[src]
fn clone(&self) -> UnixSocketConnector
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnixSocketConnector
[src]
impl Service<Uri> for UnixSocketConnector
[src]
type Response = UnixSocketConnection
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<UnixSocketConnection>> + Send>>
The future response value.
fn poll_ready(&mut self, _: &mut Context) -> Poll<Result<()>>
[src]
fn call(&mut self, _: Uri) -> Self::Future
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixSocketConnector
impl Send for UnixSocketConnector
impl Sync for UnixSocketConnector
impl Unpin for UnixSocketConnector
impl UnwindSafe for UnixSocketConnector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,