This is a feature request.
Other, more low-level channel-alike crates provide each provide a send method with an Err(...(T)) result for the failure case to recover the original event without a need to clone it before-hand, but winit (as a high-level interface/wrapper) doesn't. I think this is a bit inconsistent. If there are some underlying platform implementations, where this is not possible, I think EventLoopProxy::send_event should return an Option-alike type (or a custom enum) in the error case.
Examples:
This is a feature request.
Other, more low-level
channel-alike crates provide each provide asendmethod with anErr(...(T))result for the failure case to recover the original event without a need tocloneit before-hand, butwinit(as a high-level interface/wrapper) doesn't. I think this is a bit inconsistent. If there are some underlying platform implementations, where this is not possible, I thinkEventLoopProxy::send_eventshould return anOption-alike type (or a custom enum) in the error case.Examples:
calloopcrossbeam-channel