[−][src]Struct hyper_unix_connector::Uri
A type which implements Into
for hyper's hyper::Uri
type
targetting unix domain sockets.
You can use this with any of the HTTP factory methods on hyper's Client interface and for creating requests.
extern crate hyper; extern crate hyper_unix_connector; let url: hyper::Uri = hyper_unix_connector::Uri::new( "/path/to/socket", "/urlpath?key=value" ).into(); let req = hyper::Request::get(url).body(()).unwrap();
Implementations
impl<'a> Uri<'a>
[src]
pub fn new<P>(socket: P, path: &'a str) -> Self where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Productes a new Uri
from path to domain socket and request path.
request path should include a leading slash
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Uri<'a>
[src]
impl<'a> Send for Uri<'a>
[src]
impl<'a> Sync for Uri<'a>
[src]
impl<'a> Unpin for Uri<'a>
[src]
impl<'a> UnwindSafe for Uri<'a>
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,