Skip to content

Router should support at-most-once callbacks #417

@jdm

Description

@jdm

servo/servo#39194 (comment) is an example of a situation where the router is used for a one-shot callback but the type system doesn't know that. When the values captured by the callback need to be moved into another closure, the error messages can be confusing since the router handlers are FnMut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions