Skip to content

Commit

Permalink
feat(client): add Client::handle
Browse files Browse the repository at this point in the history
  • Loading branch information
d12i committed Mar 26, 2017
1 parent 43cf9ae commit 9101817
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 9101817

Please sign in to comment.