Enum mongors::read_preference::ReadMode [−][src]
pub enum ReadMode { Primary, PrimaryPreferred, Secondary, SecondaryPreferred, Nearest, }
Variants
Primary
PrimaryPreferred
Secondary
SecondaryPreferred
Nearest
Trait Implementations
impl Debug for ReadMode
[src]
impl Debug for ReadMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ReadMode
[src]
impl Clone for ReadMode
fn clone(&self) -> ReadMode
[src]
fn clone(&self) -> ReadMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for ReadMode
[src]
impl Copy for ReadMode
impl PartialEq for ReadMode
[src]
impl PartialEq for ReadMode
fn eq(&self, other: &ReadMode) -> bool
[src]
fn eq(&self, other: &ReadMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ReadMode
[src]
impl Eq for ReadMode
impl FromStr for ReadMode
[src]
impl FromStr for ReadMode
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
fn from_str(s: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl Display for ReadMode
[src]
impl Display for ReadMode