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::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
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