Skip to content

EventLoopClosed should contain the original event #1292

@fogti

Description

@fogti

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions