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

Investigate relaxing trait requirements of Cursor's Stream implementation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Right now, Cursor (and friends) require that the generic type T be Sync + Send + Unpin + DeserializeOwned. This requirement was originally added because we used to buffer values of T in the Cursor, which needed them. Now that we buffer RawDocumentBuf and only deserialize at the end, we may be able to drop these requirements (besides DeserializeOwned).

      Related: https://www.mongodb.com/community/forums/t/rust-driver-help-writing-a-generic-find-method/168846

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: