diff --git a/src/client/mod.rs b/src/client/mod.rs index 17f44162..d8cec11c 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -77,6 +77,12 @@ impl Client { } impl Client { + /// 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, handle: &Handle) -> Client {