pub struct Uri<'a> { /* private fields */ }
Expand description
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§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Uri<'a>
impl<'a> RefUnwindSafe for Uri<'a>
impl<'a> Send for Uri<'a>
impl<'a> Sync for Uri<'a>
impl<'a> Unpin for Uri<'a>
impl<'a> UnwindSafe for Uri<'a>
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