Skip to content

Re-export Receiver error types #488

Closed

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.

Activity

  1. keepsimple1 commented on Aug 8, 2026

    @keepsimple1
    Owner

    That's a valid issue. I've opened a PR #489 to fix it. Feel free to add comments there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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