This is a follow up to my post in the Rust Forum
Perhaps it's a good idea to store either Cow<'a, xcb::Connection> instead of &'a xcb::Connection in the ewmh connection Struct or even be generic over AsRef<xcb::Connection> so that it can optionally own the connection ?
I can contribute a PR if you think this is a good idea but don't have time to do this yourself.