mongodb 0.9.1

The official MongoDB driver for Rust (currently in alpha)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Test that PossiblePrimary isn't candidate for any read preference mode.
---
topology_description:
  type: ReplicaSetNoPrimary
  servers:
  - address: b:27017
    avg_rtt_ms: 5
    type: PossiblePrimary
operation: read
read_preference:
  mode: Nearest
  tag_sets:
  - {}
suitable_servers: []
in_latency_window: []