Skip to content

Document that Error::source() types can not be depended on #2843

Closed
@seanmonstar

Description

@seanmonstar

All sources/causes in hyper::Error should be wrapped in a private Opaque type that still prints (impl Debug and impl Display) the message, but makes the type no longer leak through err.downcast::<Blah>().

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation.A-errorArea: error handlingB-breaking-changeBlocked: this is an "API breaking change".C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions