feat(client): add Client::handle

This commit is contained in:
Daiki Mizukami
2017-03-27 08:06:07 +09:00
parent 43cf9aefe8
commit 9101817b0f

View File

@@ -77,6 +77,12 @@ impl Client<HttpConnector, http::Body> {
}
impl<C, B> Client<C, B> {
/// Return a reference to a handle to the event loop this Client is associated with.
#[inline]
pub fn handle<'a>(&'a self) -> &'a Handle {
&self.handle
}
/// Create a new client with a specific connector.
#[inline]
fn configured(config: Config<C, B>, handle: &Handle) -> Client<C, B> {