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

Include separate types for handshaked and non-handshaked connections

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      We currently use a single Connection type throughout the driver, both in pre-handshake and post-handshake scenarios. This requires us to wrap the StreamDescription stored on a Connection in a Result, since it may not be present if the handshake fails. We should model this differently so that connections used post-handshake don't have to handle the possibility of an error when accessing the StreamDescription.

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

              Created:
              Updated: