Struct mongo_driver::read_prefs::ReadPrefs [] [src]

pub struct ReadPrefs { /* fields omitted */ }

Provides an abstraction on top of the MongoDB connection read prefences.

It allows for hinting to the driver which nodes in a replica set should be accessed first. Generally, it makes the most sense to stick with the global default, Primary. All of the other modes come with caveats that won't be covered in great detail here.

Methods

impl ReadPrefs
[src]

[src]

Create a new empty read prefs.

[src]

Get a new instance of the default read pref.

Trait Implementations

impl Drop for ReadPrefs
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for ReadPrefs

impl !Sync for ReadPrefs