macro_rules! impl_getter {
($object:ty, $func:ident) => { ... };
}Expand description
Returns a GetFutureFunc for the object object with function func.
Func can be any async function in object returning a Future.
Example: impl_getter!(rumqttc::EventLoop, poll)