Skip to content

Re-export Receiver error types #488

Description

@Luni-4

Receiver is already re-exported, but its associated error types are not. As a result, users who call Receiver::recv() must add flume as a direct dependency to their Cargo.toml just to access those error types.

In one of my projects, for example, I'd like to implement From<RecvError> for my own error type. Because RecvError isn't re-exported, I'm forced to depend on flume directly.

Since Receiver is already re-exported here, could we also re-export its associated error types (e.g. RecvError, RecvTimeoutError, TryRecvError, etc.)? That would make the public API more self-contained and avoid requiring downstream crates to depend on flume solely for the receiver's error types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions