pub struct UnixSocketConnector(/* private fields */);
Expand description
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.
Implementations§
Trait Implementations§
Source§impl Clone for UnixSocketConnector
impl Clone for UnixSocketConnector
Source§fn clone(&self) -> UnixSocketConnector
fn clone(&self) -> UnixSocketConnector
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 UnixSocketConnector
impl Debug for UnixSocketConnector
Source§impl Service<Uri> for UnixSocketConnector
impl Service<Uri> for UnixSocketConnector
Source§type Response = UnixSocketConnection
type Response = UnixSocketConnection
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<UnixSocketConnection, Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<UnixSocketConnection, Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for UnixSocketConnector
impl RefUnwindSafe for UnixSocketConnector
impl Send for UnixSocketConnector
impl Sync for UnixSocketConnector
impl Unpin for UnixSocketConnector
impl UnwindSafe for UnixSocketConnector
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