pub struct HyperClient {
pub client: Client<HttpConnector>,
pub root_url: String,
}Expand description
A wrapper for a hyper client
Fields§
§client: Client<HttpConnector>The hyper client
root_url: StringThe root URL without any path attached
Implementations§
Source§impl HyperClient
impl HyperClient
Sourcepub fn new(client: Client<HttpConnector>, root_url: &str) -> HyperClient
pub fn new(client: Client<HttpConnector>, root_url: &str) -> HyperClient
Create a new client wrapper for the given client and root using protobuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HyperClient
impl !RefUnwindSafe for HyperClient
impl Send for HyperClient
impl Sync for HyperClient
impl Unpin for HyperClient
impl UnsafeUnpin for HyperClient
impl !UnwindSafe for HyperClient
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