Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-431

Consider making BSON error values Clone

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      EncoderError and DecoderError both wrap std::io::Error, so they can't implement Clone. We should consider whether we want to do the internal workarounds that will enable them to be Clone like we did in the driver.

      This would have effects on the public API, so if we did implement it, we would need to do so pre 1.0.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: