Skip to content

Disconnect reason should be an enum instead of a String #1376

Description

@invertedEcho

Hi,

for Unlinked and Disconnected component (reason field), I think it would be very useful to not having to rely on a string, as matching against a string that may also change in the future can be pretty ugly.

Instead, an enum should be introduced with all possible values, and a Display implementation for this enum that just include the strings that are currently used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TransportRelated to the transport layer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions