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

Clean up read concern construction helpers

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None

      Our ReadConcern type currently exposes constants and helper methods to construct read concerns more easily. Some read concern levels have both an associated constant and method (e.g. ReadConcern::AVAILABLE and ReadConcern::available()). We should determine a single way to expose these helpers and remove redundant API. It likely makes more sense to use helper methods as some variants require input.

      We should also consider applying whichever design pattern we choose here to WriteConcern, which currently has one associated constant (WriteConcern::MAJORITY).

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: